Sreerejith S S
Sreerejith S S

Reputation: 258

Increasing application pool session time out not working

In my project, i need to hold the session for 720 minutes also i am using forms authentication which is set 1440 (session*2) and when i am hosting this into IIS the session time out became default 20 minutes so i changed the application pool Idle Time-out(minutes) to 720 . Which is suggested by many , then also the session time out is happening after 20 minutes .I dont know why this is happening . I am using IIS (7.5). Any one please help me. Its been more than one day I am searching through internet ,I cant find any proper answer Nb: Forms authentication works just fine

Upvotes: 2

Views: 6860

Answers (1)

BSG
BSG

Reputation: 1

Website Session.Timeout will work only when it is less than the application pool session timeout value; because whenever the application pool session timeout value is reached, that particular application pool will be restarted. We have two things: the application pool that has its own session timeout value, and the web site that also has its session timeout value. Microsoft has given the parameter Session.Timeout to change the website session timeout value. not the application session timeout value. We have to understand one thing here: we have to make sure that the application pool session timeout value is always greater than the website session timeout value; only the will the Session.Timeout parameter work; otherwise, it won't. The reason is as follows: whenever the application session timeout is reached, the application pool will be restarted and because of that Session.Timeout of the website parameter won't work.

Please check these points and try

  Application Pool => Advanced Settings => Process Model => Idle Time-out(minutes)
    Sites => whatever web needs to be set => ASP => Session Properties => Time-out     remember to Apply the change
    Sites => whatever web needs to be set => Configuration Editor => system.web/sessionState => timeout    remember to Apply the change
    Sites => whatever web needs to be set => Configuration Editor => system.web/roleManager => cookieTimeout    remember to Apply the change

Upvotes: 6

Related Questions