note 15549 deleted from function.setcookie by sniper
| From: | sniper@php.net | Date: | Wed, 11 Dec 2002 07:20:21 +0000 |
| Subject: | note 15549 deleted from function.setcookie by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40743@lists.php.net to get a copy of this message | ||
1. if you set 'expire' to 0 the cookie expires 'this session'. (can be handy)
strange behaviour
2. if you specify a path, the cookie vars are only available in those directories! And strange
enough the path string is cumulative:
cookie in "/test" is also available in "/test2" and "/testbed". But
cookies set in "/testbed" are not available in "/test" etc. i.e. a partial path
string DOES match !! (not good)
Furthermore, i see in explorer(mac) that for all subdirs a 'accept cookies for
www.domain.com' is set.
This IS a problem if you work on several projects in subdirs that use the same cookie var names, for
instance used in a common AUTH-LIB. And if you use different var names, you can only work on 20
projects (max cookies per domain)
tr909