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

Discussion in 'ASP .Net Security' started by Terry, Feb 26, 2004.

  1. Terry

    Terry Guest

    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
    Terry, Feb 26, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matthias S.
    Replies:
    3
    Views:
    4,041
  2. Signout does not signout.

    , Apr 4, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    457
  3. pey0

    FormsAuthentication.signout does not ??

    pey0, Nov 20, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    128
    Guest
    Nov 24, 2003
  4. Ali
    Replies:
    1
    Views:
    113
    Keith
    Feb 1, 2004
  5. jeljeljel
    Replies:
    0
    Views:
    708
    jeljeljel
    Sep 9, 2008
Loading...

Share This Page