FormsAuthentication.SignOut() results inSystem.NullReferenceException

A

Alex Diaz

Hi. I am getting a "System.NullReferenceException" when I call
FormsAuthentication.SignOut() from Session_End method in global.asax.
Code is as follow:

void Session_End(object sender, EventArgs e)
{

FormsAuthentication.SignOut();
this.Session["user"] = null;
Response.Redirect("login.aspx");

}

Any ideas why this could be happening?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top