Click here to Skip to main content
15,300,338 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
hi
my web app sign out every one minute, .aspxauth cookie set to (20 days) and asp.net_sessionid set to (session end), i want to make my site (remember me).

i am using the below code -but to no avail-:

HTML
<authentication mode="Forms">
    <forms
    loginUrl="~/Account/Login.aspx"
    protection="All"
    timeout="30160"
    name=".ASPXAUTH"
    path="/"
    requireSSL="false"
    slidingExpiration="false"
    defaultUrl="~/Default.aspx"
    cookieless="UseCookies"
    enableCrossAppRedirects="false" />
</authentication>


how to do that?
Posted

Try increasing the Idle Time-out for the application pool to see if this helps at all.

IIS --> Directory --> Config --> Options AND AppPool --> Properties.
OR
Use this in your configuration file:
HTML
<system.web>
    <sessionState timeout="600"></sessionState>
</system.web>



--Amit
   
v2
i found the solution in this post[^]
thanks to all
   

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