Severity: Warning --> ini_set(): A session is active. You cannot change the session m - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Severity: Warning --> ini_set(): A session is active. You cannot change the session m (/showthread.php?tid=67907) |
Severity: Warning --> ini_set(): A session is active. You cannot change the session m - Peter P - 04-22-2017 I am using HMVC, I received below warnings, not getting why Code: Severity: Warning --> ini_set(): A session is active. You cannot change the session module's ini settings at this time /var/www/html/somefolder/system/codeigniter/libraries/Session/Session.php 318 This is my loader PHP Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); When I checked Code: system/codeigniter/libraries/Session/Session.php I found below lines PHP Code: // Security is king I can avoid above warning by editing index.php, but why this warnings are coming ? PHP Code: define('ENVIRONMENT', 'production'); Also I have problem with main home page without 'index.php', where I receive below status code even though I have set Code: $config['base_url'] = 'http://test.myserver.com' Code: 307 Temporary Redirect Below one is contents of my .htaccess Code: <IfModule mod_rewrite.c> And my virtual host configuration is as follows PHP Code: <VirtualHost *:80> And my hosts file Code: $ cat /etc/hosts RE: Severity: Warning --> ini_set(): A session is active. You cannot change the session m - Narf - 04-22-2017 Either you have session.auto_enable = 1 in your php.ini, or something else is calling session_start(). RE: Severity: Warning --> ini_set(): A session is active. You cannot change the session m - Peter P - 04-24-2017 (04-22-2017, 04:50 PM)Narf Wrote: Either you have session.auto_enable = 1 in your php.ini, or something else is calling session_start(). Both I checked, still same warning, is it because I do PHP Code: $this->load->library('session') in many models and in controllers ? |