user2788596
user2788596

Reputation: 344

Timeout set in web config not working

In web config i have set session time out even though my session is reset after 10-15 min

<sessionState mode="InProc" cookieless="UseCookies" timeout="525600"/>
    <authentication mode="Forms">
      <forms name="outerForms" loginUrl="~/Login.aspx" defaultUrl="Default.aspx" timeout="525599" cookieless="UseCookies"/>
    </authentication>

This is what i have set in web.config. Now Value stored in session gets cleared after 10-15 min but user does not get log out. Sorry if i sound foolish but i am new in asp.net... is it dependent on any other thing?
i am using .net version 4.0

Upvotes: 1

Views: 2049

Answers (2)

Rajat Tyagi
Rajat Tyagi

Reputation: 1

I resolved this by running SQL Server agent service. Make sure that ASPState_Job_DeleteExpiredSessions job is enabled

Upvotes: 0

juhi
juhi

Reputation: 330

Check your IIS ideal time Setting. By default it is 20 minutes. You need to increase this value.

Upvotes: 1

Related Questions