Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > code to handle session timeout?

Thread Tools

code to handle session timeout?

Posts: n/a
In my global.asax file, I have in Session_End(Object sender, EventArgs e)

Because I want to have my user relogon. But it simply does not work. I
keep getting the null exception error because the Session no longer contains
the object that I have stored. I am trying to redirect my user gracefully
back to the login page with a message that informs them of the timeout.

I know it is a simple thing, but still have not been able to work it. If
Session_End in global.asax file does not serve this purpose, then what is it

Reply With Quote
Natty Gur
Posts: n/a

Session_End is there for cleaning resources that you put inside session
Server.Transfer won't work because the session end event isn't connect
to any request of the client (every request start context and session
end donít run in such a context. It fire when there isnít any client
request for predefine time) so thereís no one to transfer to.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote

Thread Tools

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
Package to handle table text render (handle space or tab betweenthe columns) ? =?ISO-8859-1?Q?KLEIN_St=E9phane?= Python 3 10-06-2006 08:46 AM
Possible to handle web requests without an ASPX page? i.e. have DLL handle request. ASP .Net 2 05-31-2005 05:42 PM
how to handle command line output(not terminal handle) Leon Python 2 11-04-2004 05:16 AM
File Handle Reading Blues: Rereading a File Handle for Input Dietrich Perl 1 07-22-2004 10:02 AM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM