A
Alex Maghen
I'm a little confused about how to work with the "createPersistentCookie"
feature of FormsAuthentication.RedirectFromLoginPage().
1. There are various things that I need my application to do when a user
successfully logs in. I do that stuff inside the code of my Login.aspx page
after I am sure the user is authentic but before I call
FormsAuthentication.RedirectFromLoginPage(). If I pass TRUE to the second
parameter, what actually happens when the user comes back in? They seem to
get authenticated, but is my code actually getting called? How do I hook into
it so that I can do things when authentication occurs?
2. Once the user is cookied for auto-login, is there a function I can call
to clear that cookie should the user want to stop doing auto-login? Or do I
have to delete the cookie myself?
Alex
feature of FormsAuthentication.RedirectFromLoginPage().
1. There are various things that I need my application to do when a user
successfully logs in. I do that stuff inside the code of my Login.aspx page
after I am sure the user is authentic but before I call
FormsAuthentication.RedirectFromLoginPage(). If I pass TRUE to the second
parameter, what actually happens when the user comes back in? They seem to
get authenticated, but is my code actually getting called? How do I hook into
it so that I can do things when authentication occurs?
2. Once the user is cookied for auto-login, is there a function I can call
to clear that cookie should the user want to stop doing auto-login? Or do I
have to delete the cookie myself?
Alex