PC Review


Reply
Thread Tools Rate Thread

FormsAuthentication.SignOut() results inSystem.NullReferenceException

 
 
Alex Diaz
Guest
Posts: n/a
 
      22nd Aug 2010
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy results of advanced filter to a dynamic range - if only want certain records from the results - filter used to narrow down selection Cheryl Microsoft Excel Discussion 1 20th May 2004 02:19 AM
identifying same or related products (franks results and what I need for results terry Microsoft Excel Misc 1 9th Mar 2004 12:44 AM
How can I list the results of my macro without overwritng previous results? =?Utf-8?B?bWF0dGlw?= Microsoft Excel Programming 3 28th Nov 2003 04:45 AM
Search Results leading to "Premium Search Results" Leon Funnell Windows XP Internet Explorer 2 11th Jul 2003 04:54 AM
Re: Search Results leading to "Premium Search Results" Tom Windows XP Internet Explorer 0 8th Jul 2003 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 PM.