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();
C#
Session.Abandon();
FormsAuthentication.RedirectToLoginPage();
Response.End;
}Thanks a bunch.
Ceci

Ritesh Diyawar101 reputationPosted Oct 8, 2012, 2:28 AM EDT
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();
ceci bela49 reputationPosted Oct 12, 2012, 7:53 AM EDT