Re: _COOKIE[] unique?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: _COOKIE[] unique?

From: Lüpher Cypher <lupher.cypher@verizon.net>
Date: Fri Dec 30 2005 - 16:11:59 CET

newtophp2000@yahoo.com wrote:
> I may be getting confused over nothing here but ...
>
> 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?
>

$_COOKIE will only have cookies for current visitor, I believe they are
sent over via http request :) Global in this context means that $_COOKIE
is accessible from anywhere in the script, not that it has the cookies
of all user sessions.

luph
Received on Tue Jan 3 03:50:26 2006