You are here: Re: Count visitors on my website « PHP Programming Language « IT news, forums, messages
Re: Count visitors on my website

Posted by Jerry Stuckle on 07/15/07 13:32

Hadron wrote:
>
>> With sessions you can tell how many people have used your login form and
>> have yet to use your logout form, or yet to be timed out. You can not tell
>> how many people are "browsing the site".
>
> Yes you can. Because even if they are not physically looking, they ARE
> still browsing. Sure, we dont know if the use is asleep or on the toilet
> but he IS still maintaining a session.
>

No, you can't. All you know is at some time he started a session. You
don't know if they are still browsing your site (or some other site),
have closed their browser or even turned off their computer. You get NO
notification when someone closes their browser or moves on to another site.

>> I administer several sites that use logins. Sometimes I visit one only to
>> find that I had last "logged in" several days ago and my browser is still
>> hanging on to the session cookie.
>
> If you administer sites then I am surprised you are so clueless in the
> context of a PHP site.

And I'm surprised you're so clueless as to how sessions and HTTP
protocol in general work.

He's right - browsers will hang onto session cookies forever, if you
tell them to. And sites will keep sessions open until your PHP code
destroys the session or it times out - which depends on the php.ini
settings.


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

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация