Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: tim19990130

Message # 1018598:
Date: 01/21/04 11:24
By: Ravi Jayagopal Profile
Subject: RE: Logout time-URGENT

Using the "onUnload" function to your body tag, you can then call a function logExit()

which looks something like:

<script language="JavaScript">
function logExit()
{
var MyImage = new Image();
MyImage.src = "http://YourSite.com//noteDownExitTime.php";
</script>

}
</script>

And then, in noteDownExitTime.php, you update the db with current time for that user, assuming you are already tracking that user.

Hope this helps!

Ravi Jayagopal
Founder & Software Architect
http://WebmasterInABox.net

Previous Message | Next Message


Comments:
RE: User Tracking With phpanshuman atri01/13/06 04:52
RE: Logout time-URGENTRavi Jayagopal01/21/04 11:24
Logging Performance and implementationClueless01/18/03 18:42
Logging the Code Red VirusRuss11/06/02 07:38
PHP and COM portsKigunda08/26/02 07:14
logging methodperfect tommmy07/31/02 18:02
RE: User Tracking With phpFaisal Mahmud 06/29/02 03:19
User Tracking With phpShefali06/21/02 02:06
User Tracking With phpShefali06/21/02 02:04
RE: logging in and moreTor Ivan Karlsen06/17/02 04:26
RE: user authoritazion with PHPJayesh05/31/02 08:46
RE: Connecting access database to my Web-pageEric Tonicello05/22/02 04:14
Logout time-URGENTSasidhar05/14/02 05:21
RE: db without mysqlmikkeX04/19/02 05:53
db without mysqldavide04/12/02 07:13
Connecting access database to my Web-pageTheodore 02/28/02 16:14
RE: Running a PHP script in from a Ksh shellBrian Bush02/19/02 19:45
URL Parameter problemFrank01/14/02 14:12
URL Parameter problemNemali11/14/01 23:55
Running a PHP script in from a Ksh shellHoward Hazlewood09/21/01 12:37
logging in and moreAke09/03/01 01:40
Logging With PHPAhmed Saeed08/19/01 14:08
RE: puzzledmaulana07/10/01 16:47
RE: puzzledQRV05/29/01 06:59
user authoritazion with PHPHARI WIBOWO05/25/01 18:24
puzzledBahamut Zero05/15/01 17:21
RE: Logging a 100K impression a day siteken12/12/00 12:23
Logging a 100K impression a day siteVincent Stoessel09/05/00 11:20
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.