Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's differences between "forms timeout", "membership userIsOnlineTimeWindow" and "sessionState timeout"

What is the difference between these lines of code:

<forms timeout="5" />

<membership userIsOnlineTimeWindow="5" />

<sessionState timeout="5" />

Thanks a lot.

like image 603
amiry jd Avatar asked Aug 01 '11 15:08

amiry jd


People also ask

What is timeout in forms authentication?

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—they will be redirected to the login page automatically.

What is unit of session timeout in asp net?

Session timeout is in minutes Share.


1 Answers

Forms (FormsAuthention) are used for authentication and when it times out it will logout user. You can 'prevent' timeout by setting SlidingExpiration property to 'true' and it will renew forms ticket on user activity (read request to asp) if needed. This will keep user logged on while he is 'active' on your site.

Membership is used for user validation and userIsOnlineTimeWindow is there to help you track user activity so when it runs out it will set IsOnline property to 'false' for that user. One new thing I found out is that it will also renew forms ticket while users isOnline is set, main difference is that it doesn't renew itself automatically but only when its GetUser() or ValidateUser() methods are run.

When session times out you will lose data found in Session object. That is all.

like image 85
Bizniztime Avatar answered Sep 20 '22 15:09

Bizniztime