View Single Post

  #4 (permalink)  
Old 05-08-2008
Jerry Stuckle
 
Posts: n/a
Default Re: How to detect user leaving site?

Erwin Moller wrote:
> sebastian schreef:
>> Can this be done without client-side scripting? I thought sessions
>> might be the answer but after some testing found that sometimes the
>> old session data remained even after the user left the site and
>> returned. Just had an idea, though. Perhaps I could access the users
>> Referrer header?

>
> Hi Sebastian,
>
> I think you cannot detect this without JavaScript.
> If somebody goes somewhere else, your server is not notified.
> You can only try this via JavaScript.
>
> Referer:
> And I don't see how the Referer header can help you out.
> It is send to the next site (if send at all).
>
> Session:
> No go either.
> A Session is nothing more than a piece of data on the server that is
> linked to a certain visitor via a PHPSESSID (via cookie/url/form).
> I don't see how they can help you with this.
>
> So bottomline, bad luck.
> You need JavaScript (or some other clientside technology, like an JAVA
> applet).
>
> Regards,
> Erwin Moller
>


And even Javascript doesn't necessarily tell you. Closing the browser,
for instance, will not execute javascript.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote