note 34947 added to function.setcookie

From: Date: Tue, 12 Aug 2003 22:41:35 +0000
Subject: note 34947 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-54043@lists.php.net to get a copy of this message
For anyone who is having a problem with cookies being set okay, and you can seem them in your browser preferences, but your programs can't. You may be making the mistake I made. The cookie is set in a program in directory www.mydomain.com/admin but the program that is failing to find it is in www.mydomain.com. So you need to either define the path you want in the cookie or ensure the cookie is set from a program at the highest level of the path that you need. Obvious in retrospect! ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34947 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34947&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34947&report=yes

« previous php.notes (#54043) next »