Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
how much long we can maintain the session values in the website.how many hours or days
and what is the best way to store values for over a month.
thanks
srinivas
Posted

Impractical and probably unworkable. By default session variables live for 20 minutes though this can be changed in the web.config.

ASP.NET Session State Overview[^]

You'd be best to store those values in a database if you need them to persist over a long period of time.

This will get you started: HOW TO: Configure SQL Server to Store ASP.NET Session State[^]
 
Share this answer
 
If you want to store the session in process (InProc) then the maximum limit is 24 hours or 1440 minutes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900