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

Posted by Erwin Moller on 03/09/07 10:48

Man-wai Chang wrote:

Hi,

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

>
> Does session_start() send a cookie to the client browser?

If the browser like cookies: Yes.
Otherwise PHP will try to put the PHPSESSID into the URL, or in the form, or
whatever is available to communicate this.

All these behaviours are depending on the settings in php.ini.

Read more here:
http://www.php.net and type session in the searchbox.

Regards,
Erwin Moller


>

 

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

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