3
Reply

How do you sign out from forms authentication?

Swati Agarwal

Swati Agarwal

Mar 29, 2014
1.9k
0

    FormsAuthentication.SignOut(); this method is used for sign out from forms authentication.

    Munesh Sharma
    April 04, 2014
    0

    protected void btnLogout_Click(object sender, EventArgs e){try{Response.Cache.SetCacheability(HttpCacheability.NoCache);Response.Cache.SetNoStore();Response.Cookies.Clear();Session.Abandon();//HttpContext.Current.Session["ownerpanel"] = null;//HttpContext.Current.Session.Abandon();FormsAuthentication.SignOut();FormsAuthentication.RedirectToLoginPage();}catch { }}

    Dileep Kumar Patel
    April 02, 2014
    0

    The FormsAuthentication.Signout() method is used to sign out from the forms authentication.

    Swati Agarwal
    March 29, 2014
    0