Sessionvariablen werden am ende jeder Sesssion sicher gelöscht.
This commit is contained in:
@@ -8,7 +8,7 @@ Partial Class login_Logout
|
||||
Sub Page_Load() Handles Me.Load
|
||||
FormsAuthentication.SignOut()
|
||||
Session.Clear()
|
||||
|
||||
Session.Abandon()
|
||||
'clear authentication cookie
|
||||
'Dim cookie1 As HttpCookie = New HttpCookie(FormsAuthentication.FormsCookieName, "")
|
||||
'cookie1.Expires = DateTime.Now.AddYears(-1)
|
||||
@@ -20,14 +20,14 @@ Partial Class login_Logout
|
||||
'Dim cookie2 As HttpCookie = New HttpCookie(sessionStateSection.CookieName, "")
|
||||
'cookie2.Expires = DateTime.Now.AddYears(-1)
|
||||
'Response.Cookies.Add(cookie2)
|
||||
Response.Redirect("../newpageJulius_Sidebar.aspx")
|
||||
Response.Redirect("../login/login_FLEX.aspx")
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Protected Sub btn_backtostart_Click(sender As Object, e As EventArgs)
|
||||
Response.Redirect("../newpageJulius_Sidebar.aspx")
|
||||
Response.Redirect("../login/login_FLEX.aspx")
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user