2

What is different between session timeout and forms timeout property

 <authentication mode="Forms">
      <forms protection="All" slidingExpiration="true" defaultUrl="Administrator/Default.aspx" loginUrl="login" timeout="180" >
      </forms>
    </authentication>
    <sessionState timeout="300">
    </sessionState>

how differ <forms> timeout vs <sessionstate> timeout properties in web.config file.?

Thanks

1 Answer 1

1

The forms timeout is the inactivity timeout for forms authentication (or absolute timeout if you're not using sliding expiration).

Sessionstate timeout is the inactivity timeout for the user's session data - e.g. any session data you store for that user.

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

8 Comments

The forms timeout is specifically the cookie timeout before reauthentication is required by the user. This works different under different ASP versions. See msdn.microsoft.com/en-us/library/1d3t3c61.aspx
Hello @Bernie, Some time my application shows the redirection loop error.. what's the issue.?
@AbhishekBhalani this is sometimes because your login page requires authentication. Perhaps users log in from the home page but when their session times out it redirects them to a page that requires authentication? Generally need more information to help with this, though. Probably needs a separate question...
@Abhishek Are you successfully authenticating a request? Does the loginUrl login require authentication itself. From the information you have specified you would get redirected to "login" to authenticate then get sent to "Administrator/Default.aspx" after authentication. If the cookie could not be validated at Administrator/Default.aspx and the page requires authentication you would get sent back to login.
ok @Timbo .. Is it mandatory to setAuthentication cookies when validate user.
|

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.