cookie paths are really confusing me...please help!

From: Date: Mon, 22 Jan 2001 03:06:18 +0000
Subject: cookie paths are really confusing me...please help!
Groups: php.general 
Request: Send a blank email to php-general+get-35938@lists.php.net to get a copy of this message
ok here's what i get from php.net: SetCookie()'s behavior is dependant on where it is called within the web document tree. For example, setting a cookie from a php script in a directory makes that cookie available only to other scripts in that directory and its subdirectories. However, setting a cookie of the same name from a script in the directory's parent directory will override all cookies of that name in the parent directory's subdirectories. scenario: im browsing a file in lets call directory 'test'. this file is including a file in the parent directory. this included file is setting a cookie. the problem is when i goto directory 'test2' and use this same included file in the parent directory, it cant find the cookie. how should be setting this cookie?? - Noah

« previous php.general (#35938) next »