The present invention provides a method for preparing chitosan solutions toallow regulating the conditions in which the chitosan solution will gel. Thepresent invention also provides methods for using chitosan solutions ascompositions and for using chitosan solutions in vitro and in vivo.