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 way.
Any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.