How to create a log out page in asp.net
-
Hi All I need to create a Logout page in my application i am using VB as lang. I works fine but only problem is its ask for a message ...its tyring to close the current window in case of i-explores if we press yes it closes the window and logout page is only open with no back button activated. In case of Mozilla it directly open a new window(the logout page)and project window remains open. What to do Pl help Regards
Prakash Mishra(Banglore,India)
-
Hi All I need to create a Logout page in my application i am using VB as lang. I works fine but only problem is its ask for a message ...its tyring to close the current window in case of i-explores if we press yes it closes the window and logout page is only open with no back button activated. In case of Mozilla it directly open a new window(the logout page)and project window remains open. What to do Pl help Regards
Prakash Mishra(Banglore,India)
Hi Prakase, You can use this code, it works fine Protected Sub lnkLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkLogOut.Click Response.Redirect("~/SignOut.aspx") FormsAuthentication.SignOut() End Sub
prabhakar