I'm wondering if I'm going to store some data into the session is it going to be there while the user is authenticated (using formsauth) or might happen that the data will suddenly go null
+1
A:
It depends where you save the session, by default it is saved in Proc mode, which means inside of iis process of this application. Session may be null in this case in two scenarios. One timeout which you set in web.config file or while iis process has been recycled due to low memory or it's own timeout. So i wouldn't count in inProc mode for things you need to keep in session for some time, about 1 minute and more because you don't know when application will be recycled. Try out-of-proc mode. Save session on the same machine not in same process as application.
Good luck
eugeneK
2010-05-31 07:49:54