ActivEarth.SiteMaster.UserLogOut C# (CSharp) Method

UserLogOut() protected method

Method called when the User clicks the Log Out link. Removes the Users session information and redirects to the Home Page.
protected UserLogOut ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void UserLogOut(object sender, EventArgs e)
        {
            Session["userDetails"] = null;
            Response.Redirect("~/Default.aspx");
        }