|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-03-25 14:07 UTC] rtrtrtrtrt at dfdfdfdf dot dfd
[2021-03-25 15:28 UTC] cmb@php.net
[2021-07-09 08:09 UTC] sailormax at inbox dot lv
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
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