Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Logout

<%@ Page Language="VB" %> <%@ Import Namespace="System.Web.Security" %> <html> <head> <title>Logout Page</title> <script runat="server">    Sub Page_Load(Sender As Object, e As EventArgs)       FormsAuthentication.SignOut()       Message.Text = "You have been logged out."    End Sub </script> </head> <body>    <asp:label id="Message" runat="server"/> </body> </html>