T
Terry
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
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