php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33947 session.cookie_domain default behavior undocumented
Submitted: 2005-08-01 17:35 UTC Modified: 2005-08-30 16:50 UTC
From: gabe at mudbugmedia dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Linux/Debian
Private report: No CVE-ID: None
 [2005-08-01 17:35 UTC] gabe at mudbugmedia dot com
Description:
------------
For the php.ini setting session.cookie_domain, the default 
value of '' (empty string) is documented in the php.ini and on 
the website.  However, the meaning of the empty string value, 
and its expected default behavior, is not documented.  The 
documentation needs updating to state what cookie domain will 
be sent to the browser.

As of now I am getting conflicting reports of whether this 
empty value should set the cookie to '.blah.com' (to go across 
all sub-domains) or just 'www.blah.com'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-04 09:20 UTC] sniper@php.net
Hint: If that ini option is empty, the parameter will not be set at all. (after that, it's up to the browser to behave correctly..)


 [2005-08-30 16:50 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Default is none at all meaning the host name of the server which generated the cookie according to cookies specification."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Sep 10 05:00:01 2025 UTC