php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tr909 at mac dot com
New email:
PHP Version: OS:

 

 [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 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

Patches

Pull Requests

History

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

/test/ should not match /testme/
 [2001-10-08 09:09 UTC] sander@php.net
No feedback. Unlikely to be a bug in PHP. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC