|
-
Dec 3rd, 2008, 11:36 AM
#1
Thread Starter
Fanatic Member
[2005] Session End .NET 2.0 Global.asax
Does the session_end function in Global.asax fire when the session times out or when the person on the page clicks something after the session times out?
For example, would this work in Global.Asax :
Sub Session_End
Response.Redirect("./LoggedOut.aspx")
End Sub
-
Dec 3rd, 2008, 12:57 PM
#2
Re: [2005] Session End .NET 2.0 Global.asax
-
Dec 4th, 2008, 10:17 AM
#3
Re: [2005] Session End .NET 2.0 Global.asax
That won't work in global.asax because it's a server side event and is only raised when the 'session' object on the server ends or times out and as such cannot really be used to move the user elsewhere (since the session end may occur when the user is on a lunch break).
Instead, you will need to put that logic in your master page or base page or a header or a security module somewhere; check if the session exists and if it doesn't, response.redirect.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|