Click here to Skip to main content
15,891,940 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear,
Experts,

I need help on this issue session expires before session timeout
i have given timeout for 30 minutes but its expires in 10 minute aprox...
here in web.config sessionState timeout="30" mode="InProc" cookieless="false
is written...

and i am using forms authentication..

<authentication mode="Forms">
<forms loginUrl="default.aspx" path="/" slidingExpiration="false" timeout="30"/>


i nedd help,,

Thank You
In Advance.
Posted

1 solution

If you Set slidingExpiration=false the authentication cookie will expire after value number of minutes regardless of whether the user makes a request within the timeout value or not.
so it should be set to 'true'
The Forms Authentication Timeout value sets the amount of time in minutes that the authentication cookie is set to be valid, meaning, that after value number of minutes, the cookie will expire and the user will no longer be authenticated -he will be redirected to the login page automatically.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900