LogoutButton
This commit is contained in:
@@ -2,7 +2,19 @@
|
||||
Partial Class Customers_Customers
|
||||
Inherits System.Web.UI.MasterPage
|
||||
Protected Sub LogoutButton_Click(sender As Object, e As EventArgs)
|
||||
FormsAuthentication.signout()
|
||||
FormsAuthentication.SignOut()
|
||||
|
||||
Session.Clear() 'clear session
|
||||
Session.Abandon() 'Abandon session
|
||||
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
|
||||
Response.Cache.SetCacheability(HttpCacheability.NoCache)
|
||||
Response.Cache.SetNoStore()
|
||||
|
||||
Response.Redirect("../newpageJulius_Sidebar.aspx")
|
||||
End Sub
|
||||
|
||||
Protected Sub Logout()
|
||||
FormsAuthentication.SignOut()
|
||||
|
||||
Session.Clear() 'clear session
|
||||
Session.Abandon() 'Abandon session
|
||||
|
||||
Reference in New Issue
Block a user