note 44 deleted from function.setcookie by rasmus
| From: | rasmus@php.net | Date: | Sat, 10 Aug 2002 14:22:42 +0000 |
| Subject: | note 44 deleted from function.setcookie by rasmus | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34687@lists.php.net to get a copy of this message | ||
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. To better control the behavior of cookies, you might try sending a
raw Set-Cookie: header with the header() function (see Netscape's cookie spec for information
on the Set-Cookie: header).