chobo
chobo

Reputation: 32301

session state timeout vs idle timeout

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.

Upvotes: 5

Views: 9690

Answers (2)

roman m
roman m

Reputation: 26561

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

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

Upvotes: 4

Oded
Oded

Reputation: 499382

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.

Upvotes: 3

Related Questions