The code below seem to be working but want to make sure this is the correct of doing it.
protected void Page_Load(object sender, EventArgs e)
{
String querystr = Request.QueryString["action"];
if (querystr == "logoutUsers")
{
FormsAuthentication.SignOut();
}Session.Abandon();
FormsAuthentication.RedirectToLoginPage();
Response.End;
}
Thanks a bunch.
Ceci
ceci belaPosted Oct 12, 2012, 11:53 AM
Ritesh DiyawarPosted Oct 8, 2012, 6:28 AM
The Right Code is here for logout:
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["action"]!=null)
{
String querystr = Request.QueryString["action"];
if (querystr == "logoutUsers")
{
FormsAuthentication.SignOut();
}