Author: NingIE | Posted on: 9/18/2007 7:45:06 AM | Views : 489

I am using FormsAuthentication and when the user clicks log out then the page name of current page is appended to the ReturnUrl, just likes "Login.aspx?ReturnUrl=xxx.aspx". And then if a different user wants login, after he has been authenticated,he is also redirected to "xxx.aspx" that page. Any ideas to solve that? Thanks.



   Protected Sub btnLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogOut.Click

        FormsAuthentication.SignOut()
        Roles.DeleteCookie()
        FormsAuthentication.RedirectToLoginPage()

    End Sub


In ...

Go to the complete details ...