Bug #75227 [Opn->Fbk]: You cannot change the session module's ini settings at this time

From: Date: Tue, 19 Sep 2017 13:55:06 +0000
Subject: Bug #75227 [Opn->Fbk]: You cannot change the session module's ini settings at this time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211242@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75227&edit=1 ID: 75227 Updated by: requinix@php.net Reported by: k dot michalak at kstudio dot pl Summary: You cannot change the session module's ini settings at this time -Status: Open +Status: Feedback Type: Bug Package: Session related Operating System: Debian PHP Version: 7.2.0RC2 Block user comment: N Private report: N New Comment: That's right, you can't change session settings after headers have been sent. Why do you think this is a bug? Previous Comments: ------------------------------------------------------------------------ [2017-09-19 13:50:44] k dot michalak at kstudio dot pl Description: ------------ We cannot change session settings after header send Test script: --------------- <?php echo "OK"; ini_set('session.use_cookies', 0); Expected result: ---------------- OK Actual result: -------------- OK Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/test/test020.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75227&edit=1

« previous php.bugs (#211242) next »