Reply to Re: _COOKIE[] unique?

Your name:

Reply:


Posted by Janwillem Borleffs on 12/30/05 17:16

newtophp2000@yahoo.com wrote:
> I was wondering if the _COOKIE global is unqiue to each visitor or is
> it global across all visitor sessions? If it is truly global on the
> server side, is it possible that a cookie from one user's session may
> corrupt another user's session? How would I know which cookie goes
> with which user session/browser?
>

The _COOKIE variable is only global in the sence of being available in every
namespace without an explicit import (e.g. with the global keyword).

Each cookie created for a user is unique to that user because it's written
to his or her system. The browser adds a Cookie header to the request when
it finds a match on the local file system for a specific page.

When you create a cookie containing a user or session ID for user A, this
user's browser will send the ID back to the server when the appropriate page
is requested. Of course, when another user has access to user A's system and
browser, he or she will be recognized as user A while he or she isn't.


HTH;
JW

[Back to original 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

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