forms authentication

  • Thread starter Thread starter Phil Townsend
  • Start date Start date
P

Phil Townsend

I've just written a login page using forms authentication. I'm a little
confused on how to expire the user, that is if they close the browser
and reopen it, I wnat them to have to log back in. I know this is
simple, but can anybody help?
 
Hi,

It will work the same way than a regular session, if the browser is closed
the session is lost, if the session is inactive more than a predefined time
(20 min by default) the session is lost.
 
I assume you're calling FormsAuthentication.RedirectFromLoginPage to
redirect the user once you've verified their credentials. Specify false for
the second parameter and it should work as you want.

/claes
 
Back
Top