#41894 [Opn->Csd]: session.use_only_cookies defaults
| From: | vrana@php.net | Date: | Thu, 16 Aug 2007 12:53:15 +0000 |
| Subject: | #41894 [Opn->Csd]: session.use_only_cookies defaults | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377413@lists.php.net to get a copy of this message | ||
ID: 41894
Updated by: vrana@php.net
Reported By: tokul at users dot sourceforge dot net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
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.
"Defaults to 1 (enabled) since PHP 6.0."
Previous Comments:
------------------------------------------------------------------------
[2007-07-04 13:23:51] tokul at users dot sourceforge dot net
Description:
------------
PHP documentation states that session.use_only_cookies default value is
1. Tested 4.4.7, 5.2.3 and 6.0-dev (200706201030). If setting was
changed in later PHP6 versions, sorry for outdated report.
No php.ini file, no overrides in apache configuration and no
.htaccess.
setting is 'On' only in 6.0-dev. Default value for 4.4.7 and 5.2.3 is
'Off'. Only in php.ini-dist it is set to 1.
http://bugs.php.net/bug.php?id=36279
36279 bug shows that you had 0 and 1 in some documentation revision. I
think documentation was not updated correctly or default value was not
checked when documentation was updated.
It would be nice to know which setting has higher priority.
For example, if settings are set to
---
session.use_cookies = off
session.use_only_cookies = on
session.use_trans_sid = on
---
Will it use trans_sid or cookies?
Reproduce code:
---------------
var_dump(ini_get('session.use_only_cookies'));
Expected result:
----------------
string(1) "1"
Actual result:
--------------
string(1) "0" on PHP 5.2.3 and PHP 4.2.7
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41894&edit=1