We have an application that uses session variables in this form:
Session["FirstName"] = "test";
And we collect like this in other pages:
result = Convert.ToString(Session["FirstName"] );
We are using one Application Pool configured with NET 4, Enable 32 bits apps, queue length 1000, Identity:ApplicationPoolId
entity and Idle timed out we changed from 20 to 1000.
We changed the idle time from 20 to 1000 because we noted in event viewer we found this warning:"A worker process with process id of '18404' serving application pool 'webapplication' was shutdown due to inactivity. Application Pool timeout configuration was set to 20 minutes. A new worker process will be started when needed."
After change the 20 to 1000 the warning is no more in the event viewer like if was solved the issue of our main problem. This is our main problem:
Now the real reason we changed from 20 to 1000 in idle time is because if we have opened the browser and inactive for some time the application then the session variables loss their values. Then the change from 20 to 1000 not work at all because the session variables continue losing their values.
How can we solve the session variables loss their values?