Bug #80906 [NEW]: session.use_cookies = false still require not sent headers
| From: | sailormax at inbox dot lv | Date: | Thu, 25 Mar 2021 14:01:40 +0000 |
| Subject: | Bug #80906 [NEW]: session.use_cookies = false still require not sent headers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-232989@lists.php.net to get a copy of this message | ||
From: sailormax at inbox dot lv
Operating system: Any
PHP version: 8.0.3
Package: Session related
Bug Type: Bug
Bug description:session.use_cookies = false still require not sent headers
Description:
------------
If try to setup session-functions to work without cookies, they still
doesn't work when headers have already been sent
Test script:
---------------
<?
print "foo";
ini_set("session.use_cookies", 0);
session_name("myname");
?>
Expected result:
----------------
foo
if user turn off "session.use_cookies", php has not to check headers in
ini_set() and in any session-functions.
Actual result:
--------------
foo
Warning: ini_set(): Session ini settings cannot be changed after headers
have already been sent in D:\foo.php on line 3
Warning: session_name(): Session name cannot be changed after headers
have already been sent in D:\foo.php on line 4
--
Edit bug report at https://bugs.php.net/bug.php?id=80906&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80906&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80906&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80906&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80906&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80906&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80906&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80906&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80906&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80906&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80906&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80906&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80906&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80906&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80906&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80906&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80906&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80906&r=mysqlcfg