How to know from where you come?

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. > &...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 06-28-2007
Toby A Inkster
 
Posts: n/a
Default Re: How to know from where you come?

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/
Reply With Quote
  #12 (permalink)  
Old 06-28-2007
Michael Fesser
 
Posts: n/a
Default Re: How to know from where you come?

..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
Reply With Quote
  #13 (permalink)  
Old 06-29-2007
Iván Sánchez Ortega
 
Posts: n/a
Default Re: How to know from where you come?

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]
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0