LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2004, 06:16 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
CGI + Leave


Hi all. I don't actually know where this post shoud be, but I think it belongs here. The reson I don't know is because I don't know wether or not it is at the Appache level, or the script (CGI) level. Anyway, I need to be able to run a script (CGI) when someone LEAVES a certain page on my server, this would be the best. If this cannot be done, is there a way to run a script simpley when someone leaves the server altogether???

You see, I want to have a list of all the users that are browsing the page.
 
Old 05-25-2004, 08:20 AM   #2
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Hello,
you might want to use JavaScript and the onUnload event of the body tag like this

<body backgroud='#FFFFFF' onUnload="javascript:document.location='logout.php">

something likek that :-)
 
Old 05-25-2004, 03:08 PM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Can 'logout.php' be 'logout.cgi'???
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl CGI:Can't locate CGI.pm supermyself Programming 13 09-10-2007 06:22 AM
leave pirozzi Slackware 6 02-14-2005 02:37 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 08:49 PM
to leave the PC on or not? csDraco_ Linux - Hardware 10 10-29-2003 08:19 AM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration