Сбрасываются сессии

mrLIS
Дата: 22.05.2008 19:08:21
Всем привет. Кто знает, почему после удаления какой либо дирректории программным путем сбрасываются все сессии (пользователь авторизуется на сайте, удаляет дирректорию, его сессии обнуляются и он вылетает), и как это исправить?
ХреноРедька
Дата: 22.05.2008 19:45:17
http://bluedragon.blog-city.com/why_might_a_net_web_application_app_domain_restart_the_reaso.htm

автор
Why is it Restarting?

If you see that you are experiencing restarts, the next question to ask is why? When folks work with .NET web apps, they often learn the hard way that their app is restarting more often in a day than they'd expect. The reasons it can happen are even more surprising.

Among the reasons it can/will restart (or technically, unload itself) is if:

* the web.config is edited
* the machine.config is edited
* the global.asax is edited
* files are changed in the bin directory of the web app, or one of the bin's subdirectories
* a directory is created, renamed, or deleted within a web app directory
* an ASP.NET file (aspx, asmx, etc.) is edited (and therefore recompiled) more than 20 times, a default set in the machine config as an element named numRecompilesBeforeApprestart
* by way of settings of various attributes in the <processModel> element in the machine.config, which affect the restart/shutdown of the worker process itself. On Windows 2003, when not using IIS5 isolation mode (which is not used by default), these <processModel> elements are ignored and instead the settings in Application Pools in IIS manager are used


Попробуйте исплользовать out-of-proc сессии (State Server или Sql Server).
mrLIS
Дата: 22.05.2008 21:05:13
Большое спасибо, буду пробывать