logout problem

Last post 01-09-2007 1:44 AM by Leijun Jie - MSFT. 3 replies.

Sort Posts:

  • logout problem

    01-07-2007, 3:51 PM
    • Member
      238 point Member
    • ghw123
    • Member since 10-30-2006, 12:12 AM
    • Posts 152

    I have loginstatus control on sitemaster.aspx page. Whenever I try to logout from content pages nothing happens.

    loginstatus control properties are

    Logout Action = RedirectToLoginPage

    LogOutPageUrl = ~/Login.aspx 

  • Re: logout problem

    01-07-2007, 9:27 PM
    Answer
    • Participant
      829 point Participant
    • hypercode
    • Member since 07-15-2006, 2:42 PM
    • Posts 268

    You could try something like this. Set LogoutAction to Refresh in Properties and add a logged out sub

    Protected

    Sub LogStatus1_LoggedOut(ByVal sender As Object, ByVal e As System.EventArgs) Handles thLogStatus.LoggedOut
        Response.Redirect(
    "Login.aspx", True)
    End Sub
  • Re: logout problem

    01-07-2007, 9:27 PM
    • Participant
      829 point Participant
    • hypercode
    • Member since 07-15-2006, 2:42 PM
    • Posts 268

    You could try something like this. Set LogoutAction to Refresh in Properties and add a logged out sub

    Protected

    Sub LogStatus1_LoggedOut(ByVal sender As Object, ByVal e As System.EventArgs) Handles LogStatus1.LoggedOut
        Response.Redirect(
    "Login.aspx", True)
    End Sub
  • Re: logout problem

    01-09-2007, 1:44 AM
    The LoginStatus control works fine in the content page in my testing. Can you post your master/content page file?
    The future is now...
    Sincerely,
    LeiJun Jie
    Microsoft Online Community Support
Page 1 of 1 (4 items)