FormsAuthentication.SignOut() does not appear to remove authentication ticket

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top