Probably not. What is happening here is that ASp.NET is detecting that net needs to start the application so is recycling the AppDomain. Trying to preserve session state is meaningless, as all those sessions are gone and I don't think you have a way to map a user's new session to the old one. This isn't the answer you want to hear, but the work-around is not to copy the file over when people are logged on.
What I do to make it a bit more friendly to the user is take the website down with an app_offline.htm, copy files over, and then remove app_offline.htm. On Wed, May 27, 2009 at 07:03, rlejsza <[email protected]> wrote: > > Hi, > > I've got question. > Is it possible to change some asp .net setting that session will be kept (or > not lost) after I've copy new files onto server. I'm asking because when > application is running and someone is logged in and I copy exactly the same > files to the server, without any changes, session from this user is lost. > > Do you know maybe any workaround for such problem? > > Regards > > Radek > -- > View this message in context: > http://www.nabble.com/ASP-.net-Session-tp23742063p23742063.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > -- http://www.opgenorth.net _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
