[PEAR-BUG] Bug #20401 [Opn->Fbk]: domainMatch function in CookieJar does not allow setting domains from same tree

[email protected] Thu, 9 Oct 2014 18:43:00 +0100 (BST)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=20401&edit=1

 ID:               20401
 Updated by:       [email protected]
 Reported By:      vincent dot tamws at gmail dot com
 Summary:          domainMatch function in CookieJar does not allow
                    setting domains from same tree
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          HTTP_Request2
 Operating System: Windows 8.1
 Package Version:  2.2.1
 PHP Version:      5.3.29
 Roadmap Versions: 
 New Comment:

-Status: Open
+Status: Feedback
please provide more detail, e.g. some example code that demonstrates
your issue.

not checking domains would require you to do the checks your own.

if you report with the browsers only how they feel when used, it's
probably a different domain given in 
the concrete cookie?

otherwise checks with publicsuffix.org must be done for cookie domain
validation if you'd like to mimic 
browser behavior.


Previous Comments:
------------------------------------------------------------------------

[2014-09-08 19:16:01] tamws

Description:
------------
When I use the library to access yahoo's domain hk.auctions.yahoo.com,
the page set a cookie for bid.yahoo.com but it is not allowed even
though they're both under yahoo.com

It throw this exception:
- Error: Domain hk.auctions.yahoo.com cannot set cookies for
bid.yahoo.com

However, from the IE or Firefox browser this behavior seems to be ok,
maybe the library should update to match the browser behavior or has an
option to allow turn on/off this strict checking? Thanks!

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20401&edit=1