Logoutbutton versucht zu ficxen sowie das Menü erfolgreich gefixed bei Userinterface in Navigationsleiste

This commit is contained in:
ja
2021-09-06 16:33:53 +02:00
parent 1ad641f1c5
commit 7e061048b8
3 changed files with 8 additions and 14 deletions

View File

@@ -1,7 +1,8 @@

Partial Class Customers_Customers
Inherits System.Web.UI.MasterPage
Protected Sub LogoutButton_Click(sender As Object, e As EventArgs)
Protected Sub LogoutButton1_Click(sender As Object, e As EventArgs)
MsgBox("Logged out!")
FormsAuthentication.SignOut()
Session.Clear() 'clear session
@@ -10,17 +11,7 @@ Partial Class Customers_Customers
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
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
Response.Redirect("../newpageJulius_Sidebar.aspx")
End Sub