locked
Logout - Session.Abandon RRS feed

  • Question

  • User-1221430945 posted

    1. When requesting myPage.aspx for the first time, I see the contents in the <AnonymousTemplate> of a LoginView-control..

    2. After logging in, you see the content in <LoggedInTemplate> , exacly as you should!

    3. However, after signing out you still see the contents in <LoggedInTemplate>

    Login.aspx.vb
    When a user clicks the Login-button I set:
    - FormsAuthentication.SetAuthCookie(txtUsername.Text, False)

    I also set a session where I save the users userID:
    - HttpContext.Current.Session("authenticatedUser") = userID

    When signing out I use:
    HttpContext.Current.Session.Abandon()  

    It seems that I need to do something more to be signedout correct..?
     

    Monday, April 13, 2009 9:51 AM

Answers