Friday 28 March 2014

Log-out code in asp.net with C#

The following code is for log out

Other Articles - Step by step solution

------------------------------------------------------------------------
three tier architecture in asp.net
how to connect MS access in asp.net
how to access website in LAN
------------------------------------------------------------------------

Use following code for log out and redirect in log-in page.


public void LogOutCode()
    {
        Session.Abandon();
        Session.Clear();
        Session.Remove("SessioName");

        Response.Redirect("~/Log-in.aspx");
    }

No comments:

Post a Comment



Asp.net tutorials