Possible Duplicate:
What happens when I edit web.config?
I have a login on my website that stores the user information into sessions. One issue however is that whenever I run or publish my applications it requires me to log in again. I test my applications frequently and I was wondering if this is common for sessions to clear everytime the application is run or published.
Thanks,
Paul
When you deploy new code, the application is recycled on the server. Ergo, all new sessions are created and the
application_startmethods etc in global asax are also invoked again.If you want to ‘stay logged in’ regardless of session, you probably need to make some form of auto-login with a cookie on your machine.