What are we cooking today?
Logout when using ASP.NET memberships
RECIPE
  Protected Sub lnkLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkLogout.Click
        FormsAuthentication.SignOut()
        Response.Redirect(FormsAuthentication.LoginUrl)
  End Sub
 
No comments:
Post a Comment