|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13337 cookie issues
Submitted: 2001-09-17 05:18 UTC Modified: 2001-10-08 09:09 UTC
From: tr909 at mac dot com Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0.6 OS: any?
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 - 16 = ?
Subscribe to this entry?

 [2001-09-17 05:18 UTC] tr909 at mac dot com
Regarding the Set_cookie() function and cookie behaviour.

if you specify a path, the cookie vars are only available 
in those directories! And strange enough partial path 
strings DO match:
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' 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 



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-17 05:36 UTC]
what about adding a final slash to the pathname?

/test/ should not match /testme/
 [2001-10-08 09:09 UTC]
No feedback. Unlikely to be a bug in PHP. Closing.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 16:03:41 2021 UTC