Forum Moderators: open

Message Too Old, No Replies

Event Handler Problem

on exit handler?

         

ravtec1

5:54 am on Dec 6, 2003 (gmt 0)

10+ Year Member



Well I want my code to run when the user exits the webpage so that I can log the user and logoff the account. what event handler can I use for this?
so far i know of Unload but this is when the server finshed loading and before the user is acutally on the page.

korkus2000

4:51 am on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You won't hit the server leaving the page, unless you run all your links through a process page. Why not tie it into the session so it will log off onsessionend?

ravtec1

8:20 am on Dec 7, 2003 (gmt 0)

10+ Year Member



wait is there a such event handler as onsessionend? how do i set that up?

[edited by: ravtec1 at 8:24 am (utc) on Dec. 7, 2003]

ravtec1

8:22 am on Dec 7, 2003 (gmt 0)

10+ Year Member



wait you mean a session variable? or when the users session ends like a cookie? am i even on the right track of thought?

korkus2000

3:14 pm on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this .Net or Classic ASP? In .Net it is the Session_End part of the global.asax.

ravtec1

12:20 am on Dec 10, 2003 (gmt 0)

10+ Year Member



thanks im working right now on getting my global asax files working. Does the asax file run with every file or how does it work?

ravtec1

8:22 am on Dec 10, 2003 (gmt 0)

10+ Year Member



.NET

korkus2000

1:53 pm on Dec 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is an application file, so it works when any part of the .Net application is started. As soon as a new session is created in that application that session event will be available.