Willem Odendaal

the coder's point of view

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

I Read

Subscriptions

Post Categories



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.

posted on Tuesday, March 15, 2005 2:48 AM by willemo





Powered by Dot Net Junkies, by Telligent Systems