-1

I want to implement session timeout for 3 minutes.The actual way of working of session is when user is idle for 3 minutes then only user get log-out or session gets expire.

But the way session works in my asp.net application, it expires session when user is also active for 3 minutes.

I want to know what things to do for proper session handling. My code sample is here

<authentication mode="Forms">
<forms loginUrl="~/Login/LoginFrist.aspx" timeout="5" />
</authentication>
abu
  • 59
  • 2
  • 9

1 Answers1

0
<system.web>
    <authentication mode="Forms" >
      <forms slidingExpiration="true" timeout="3"></forms>
    </authentication>
  </system.web>

Put this in you web.config or update accordingly.

check out following for more detais

Forms authentication timeout vs sessionState timeout

Community
  • 1
  • 1