FormsAuthentication.SignOut() does not appear to remove authentication ticket
From: Terry (anonymous_at_discussions.microsoft.com)
Date: 02/26/04
- Next message: Ron Ifferte: "DPAPI in a Load Balanced Environment"
- Previous message: richlm: "Re: Parent paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 26 Feb 2004 10:36:06 -0800
My applicaiton is using forms authentication. I want to have a logout button. Users initially go to page main.aspx. If it is the first time the have been there since opening the brower it takes them to the login.aspx page with does the following to authenticate:
FormsAuthentication.RedirectFromLoginPage(txtUser.Text, False)
Here they will go back to main.aspx and everything works O.K.
After transversing the site, the user clicks on logout which executes the following:
FormsAuthentication.SignOut()
Server.Transfer("Main.aspx")
The transfer hapens, but without asking for re-authentication, WHY?
If I shut down the browers and start again, going to "main.aspx", it asks for authentication. The end result I am looking for is to have the user click on logout and then be brought back to the site as if they were going there for the first time when opening their browser. The signout does not seem to be working in my scenerio.
Thanks,
Terry
- Next message: Ron Ifferte: "DPAPI in a Load Balanced Environment"
- Previous message: richlm: "Re: Parent paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]