Im using forms authentication and SqlMembershipProvider, what do I need to do so the user never logout automatically?
Asked
Active
Viewed 480 times
1 Answers
2
You can change your cookie's expiration date using timeout on your forms element in the web.config.

Zachary
- 6,522
- 22
- 34
-
Thanks, do you know if there is a value for infinite? – alejandrobog Nov 29 '10 at 23:35
-
1You can use slidingExpiration, to reset/extend the expiration date/time each time the user starts a new session. This combined with a long timeout should give you something that feels like it never expires. – Zachary Nov 29 '10 at 23:36