Losing Session Variables
I had a strange problem this morning. My ASP.NET web application used to work fine. Then all of the sudden my Session State started dissapearing. This happened for no apparent reason after a postback occurred.
After looking at a number of forums I figured out what was going on...
I've been working on a 'extensible' web application and deploying 'plugins' to the bin folder. When sessionState (in web.config) is set to InProc, any change to the bin folder will cause the application to silently restart! Thus the loss of Session Variables. Strangely enough the SessionID stays the same.
Apparently this happens on IIS5 and IIS6. I've only tested it on IIS6.
The solution is simple - switch your session management to SQLServer.