RE: [PHP] cookie paths are really confusing me...please help!

From: Date: Mon, 22 Jan 2001 03:08:25 +0000
Subject: RE: [PHP] cookie paths are really confusing me...please help!
Groups: php.general 
Request: Send a blank email to php-general+get-35939@lists.php.net to get a copy of this message
> 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 point here is that the file is being *included*, therefore the cookie will only be local to that "test" directory, regardless of where the file that sets the cookie lives. > 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?? I mainly set my cookies with a path of "/". Saves hassles, and the cookie is accessible everywhere. Jason -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Fetch the comfy chair!

« previous php.general (#35939) next »