I am using Session variables to store information. It works fine until some file like web.config or IIS itself is changed from outside. In my case, it usually happens on doing Jenkins. When that happens all the information stored in the session gets lost as a result I get logged out forcibly. variables to store informati