3
votes

Is the session state timeout setting in the web.config the same as IIS 7 idle timeout setting? If not, which one takes priority? I would like to increase users sessions to a couple of hours.

2

2 Answers

4
votes

Make sure your AppPool's idle timeout is GREATER than your session timeout.

Once your AppPool times out, all session data is lost.

3
votes

Idle timeout is for the application pool as a whole. It kicks in if all the applications linked to the pool have had no activity within the set time.

Session state is per session. This is specifically for a single user session. You can have many sessions occurring at any single time.