Showing posts with label FormAuthentication. Show all posts
Showing posts with label FormAuthentication. Show all posts

Thursday, April 19, 2012

Logout when using ASP.NET memberships


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