What is the best place for storing the Session variables and application variables in asp.net ? [Resolved]

Posted by Sivakumar.S under ASP.NET on 8/7/2012 | Points: 10 | Views : 1509 | Status : [Member] | Replies : 1
Hi,

What is the best place for storing the Session variables and application variables in asp.net ?


Thanks in Advance

siva


Responses

Posted by: Sheonarayan on: 8/7/2012 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Got confused, there is not a place where you store session or application.

Session data is stored based on the configuration you have set in the web.config file (if no configuration is set for sessionState, it stores inproc ie in the system memory).

Application variables data is also stored into the system memory.

In above case when the application restarts both the session data as well as application data is lost.

If you have stored session in outproc (state server or sql server), your data will remain even the application is restarting.

Hope it helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sivakumar.S, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response