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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC