Hi everyone,
This logout page looked like it could not remove the Authentication Ticket cookie from the user's browser. Were there any problems with the codes?
These are the codes:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Public MustInherit Class LogOut
Inherits System.Web.UI.UserControl
Protected WithEvents btnlogout As System.Web.UI.WebControls.Button
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnlogout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlogout.Click
System.Web.Security.FormsAuthentication.SignOut()
Response.Redirect("Login.aspx?ReturnUrl=" & Server.UrlEncode(Request.Path))
End Sub
End Class