1

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-:

<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 do I prevent my app from signing out so often?

2
  • 1
    I found this and this searching SO. Commented Feb 28, 2013 at 20:54
  • thank you so so much :)! i found the solution in this post Commented Mar 3, 2013 at 0:42

1 Answer 1

2

Look like everything is in default setting, so use the following setting.

<forms loginUrl="~/Account/Login.aspx"" timeout="30160" />

In web.config, make sure sessionState either doesn't exist at all or is set to something.

<sessionState timeout="20"/>

If you modified the default form authentication, see this post -

Forms Authentication Timeout

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.