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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 22:01:27 2019 UTC