|
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]
|