Hi !!
Hope this Helps
if(!IsPostBack)
{
if (Session["LoginId"] == null)
Response.Redirect("frmLogin.aspx");
else
{
Response.ClearHeaders();
Response.AddHeader("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
Response.AddHeader("Pragma", "no-cache");
}
}
You can clear the User Session by:
Session.Clear();
Session.Abandon();
System.Web.Security.FormsAuthentication.SignOut();