1

Im using forms authentication and SqlMembershipProvider, what do I need to do so the user never logout automatically?

alejandrobog
  • 2,091
  • 14
  • 20

1 Answers1

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
  • 1
    You 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