开发者

How can I save to my web config without losing my session?

开发者 https://www.devze.com 2023-01-05 06:48 出处:网络
I thought about saving all sessions variables to hiddens and then resaving those values back into session after I changed the web config..but there has GOT to be another w开发者_运维知识库ay.

I thought about saving all sessions variables to hiddens and then resaving those values back into session after I changed the web config..but there has GOT to be another w开发者_运维知识库ay.

Any help?


If you change the web.config the app restarts and thus the session is lost (for inProc session). I remember changing the session provider to store session data in files to get over the session getting lost.

Or maybe you can use the Sql Server to store the session (sessionState mode="SQLServer") in web.config) but I don't know if this keeps your session state when modifying the web.config file (though it should).

Hope you find it helpful.

0

精彩评论

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