aspx session expired immediately

  • Thread starter Thread starter ºa¤Ö
  • Start date Start date
º

ºa¤Ö

when i try to update the dll file (compiled by csc) or cs file, or once the
web application throw exception, all user's session will expired
immediately....why??

and how to solve this problem? thanks
 
Each website is loaded into an AppDomain. ASP.NET watches for changes to
the file system such as a new web.config for changes to the binaries. When
a change occurs, a new AppDomain is started and all new requests are routed
to that new domain. When all current requests have finished on the previous
AppDomain, it is then disposed of. This causes all state information to be
reset because the info was on the old domain.

I am not sure about exceptions though. That should not cause the sessions
to expire.
 
Back
Top