As suggested above cookies are best way for your requirement but cookies come with size limitation. Dont really know what you are trying to achieve but consider using Application object too. You can save the value in application object. The value stored
in applicaton object remains in the memory till the application is running.
But please go through the following link before working with application objects:
GaurangNaik
Contributor
2095 Points
499 Posts
Re: Persist Session Value or Replacement For Session
Aug 09, 2012 08:50 PM|LINK
Hi,
As suggested above cookies are best way for your requirement but cookies come with size limitation. Dont really know what you are trying to achieve but consider using Application object too. You can save the value in application object. The value stored in applicaton object remains in the memory till the application is running.
But please go through the following link before working with application objects:
http://msdn.microsoft.com/en-us/magazine/cc301579.aspx
http://www.dotnetspider.com/tutorials/AspNet-Tutorial-39.aspx
GauranG