开发者

Changing web.config and session lifecyle

If I change (and upload) the web.config of an ASP.NET site, do existing users su开发者_StackOverflow中文版rfing the site lose their sessions?

Also, does the IIS server need to be reset?


If the session is in proc, then yes, they do loose their sessions.

If you are using a session server then no, they don't.

A new web.config would cause a restart of the site automaticlly, but should not require an IIS reset.


Modifying the web.config file will cause the application to restart an it is equivalent to recycling the application pool. If you are using InProc session management, then yes, all user sessions will be lost. No, an IIS reset is not needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜