Bug #75227 [Com]: You cannot change the session module's ini settings at this time

From: Date: Tue, 19 Sep 2017 14:32:51 +0000
Subject: Bug #75227 [Com]: 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-211247@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 Comment by: k dot michalak at kstudio dot pl Reported by: k dot michalak at kstudio dot pl Summary: You cannot change the session module's ini settings at this time Status: Feedback Type: Bug Package: Session related Operating System: Debian PHP Version: 7.2.0RC2 Block user comment: N Private report: N New Comment: But in php 7.0.22 thereis no problem Previous Comments: ------------------------------------------------------------------------ [2017-09-19 13:55:05] requinix@php.net That's right, you can't change session settings after headers have been sent. Why do you think this is a bug? ------------------------------------------------------------------------ [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 (#211247) next »