protected void lnkbLogout_Click(object sender, EventArgs e)
{
FormsAuthentication.SignOut();
Session.Abandon();
HttpContext.Current.Response.Redirect("Login.aspx", true);
}
//-----------Or --------------
protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
{
FormsAuthentication.SignOut();
Roles.DeleteCookie();
Session.Clear();
}
Good Luck


No comments:
Post a Comment