You are here: Re: How to know from where you come? « PHP Programming Language « IT news, forums, messages
Re: How to know from where you come?

Posted by rf on 06/28/07 10:55

<joboils@hotmail.com> wrote in message
news:4h2783llmqp4qnumivvntrslmqhoq08036@4ax.com...
> On Thu, 28 Jun 2007 09:27:45 +0200, Ivαn Sαnchez Ortega
> <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org> wrote:
>
>>joboils@hotmail.com wrote:
>>
>>> Why not write the data into the file as they click to leave each site
>>> - not as they click upon entering each site?
>>
>>Because there is not a clear and easy way to know when a "user leaves a
>>site".
>>
>>Logging page hits, on the other hand, is pretty trivial.
>
> A user leaves a site when they click on a link to do so(!).

Or if they hit the back button.
Or if they choose one of their favourites.
Or if they type in a new URL in the address bar.
Or if they right click and choose to open the link in a new tab/window.
Or if they simply wander off to the pub because the power has failed.

You can *never* tell when somebody leaves a site.

> If a link on site 1 points the visitor to site 2, the script opens a
> file, adds to the hit number in that file and closes the file again.

What script? Where? On the client? On the server? On the new page?
Surely not on the old page, that has long since gone.

And if the viewer chooses to [right-click > open in a new tab] on that link?
You will never know. Neither "site" will know. The web is stateless. You do
*not* know what has happened previously.

--
Richard.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация