|  | 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
  Navigation: [Reply to this message] |