You are here: Re: newbie question on PHP sesssions « PHP Programming Language « IT news, forums, messages
Re: newbie question on PHP sesssions

Posted by Rik on 03/09/07 11:43

Erwin Moller
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote:

> Man-wai Chang wrote:
>> How does PHP differentiates between 2 PCs from the same network?
>
> It doesn't.
> It doesn't even differentate between 2 PCs on opposite location on the
> globe. You can however get the remote IP-addres (it is stored in
> $_SERVER).
>
> If you want PHP to differentiate between unique PCs, you need indeed
> sessions.

To elaborate: it doesn't even 'differentiate' 1 PC. New sessions are
started purely based on the fact of the client not sending any session_id.
So, I might have several sessions on 1 computer, or 1 session on several
computers.
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

 

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

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