This is a discussion on How to know from where you come? within the PHP Language forums, part of the PHP Programming Forums category; Michael Fesser wrote: > Iván Sánchez Ortega wrote: > >> Do some research on HTTP referrers. > &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Michael Fesser wrote:
> Iván Sánchez Ortega wrote: > >> Do some research on HTTP referrers. > > And on how unreliable they are. They are "reliable enough" for *many* purposes. -- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.12-12mdksmp, up 7 days, 14:46.] Long-Awaited Zeldman Article http://tobyinkster.co.uk/blog/2007/0...ldman-in-time/ |
|
|||
|
..oO(joboils@hotmail.com)
>A user leaves a site when they click on a link to do so(!). Yep, and the script on site 1 won't notice that. No browser sends a "good bye, I'm leaving now". Or do you think of a kind of redirection script on site 1, which logs the request? <a href="redirect?url=site2.example.com">site 2</a> That's just _one_ way to "leave" a site. There are a dozen others. Micha |
|
|||
|
rf wrote:
> You can *never* tell when somebody leaves a site. You can never *reliably* tell when somebody leaves a site. You can do some assumptions, though. e.g., "A user has left my site if I haven't received any hits from him in the last 5 minutes" or "A user has left my site if his session has expired". > The web is stateless. Better said, HTTP is a stateless protocol. And, seriously, anyone not understanding this concept should go back to his books. -- ---------------------------------- Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org- What? You search? You would multiply yourself by ten, by a hundred? You seek followers? Seek zeros! -- Friedrich Nietzsche [1844 - 1900] |