Re: connection alive
On 11 Mar, 17:35, "Bill" <get...@xxxxxxxxxxxxxx> wrote:
Hi
Ubuntu7.10 LAMP
Is there a way to let php know when a visitor has left a site ?
Thanks
Yes - but your question has imprecise semantics.
If you want to see them following a link out of your site you'll need
to route all your external URLs through a redirector.
If you use a session cookie you'll be able to see when they've closed
all their browser windows (but you can't easily discriminate between
this case and a browser not accepting cookies).
You can hook into the garbage collection for the session in PHP to see
when it gets reaped.
You can do clickstream analysis on your log files.
C.
.
Relevant Pages
- Re: Site disappears in IE 6
... The only difference (apart from some javascript skullduggery you may have ... engaged in) is the session cookie (why do you need a session cookie ... thus causing a PHP error that you cannot see. ... checks to see if the admin is logged in, then gives a link to the ... (alt.html) - Re: nesting JS in echos
... html to php. ... it was to use a php session cookie to stop ... into the echo command, but the problem was the syntax of the single ... I'll list the segments of PHP code I used below; ... (comp.lang.php) - Re: Not a redirect but a "tunnel"
... >>If you don't want to use PHP, why are you asking on a PHP newsgroup?!? ... I misinterpreted when you said "The site is pure HTML... ... and set a session cookie. ... If the user closes their browser and comes back later, ... (alt.php) - Re: Stop hotlinking to a specific file & keeping a counter
... Thanks but ahem, I don't know how to that. ... my PHP link, but they connected directly to my file. ... Or a better way is a cgi-script that monitors all file access. ... Use a session cookie ... (comp.lang.php) - Re: Cannot send session cookie - headers already sent by
... Cannot send session cookie - headers already sent by (output ... All people are referring to extra line at the end and related issues, ... Are you sure that the <?php is the very first thing in the file? ... (comp.lang.php) |
|