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.
精彩评论