Edit report at https://bugs.php.net/bug.php?id=62015&edit=1
ID: 62015 Updated by: yohg...@php.net Reported by: d...@php.net Summary: Session auto-start issues Status: Open Type: Bug Package: Session related PHP Version: 5.3.13 -Assigned To: +Assigned To: yohgaki Block user comment: N Private report: N New Comment: I think this is reasonable change, since it would not work as PHP_INI_ALL. Previous Comments: ------------------------------------------------------------------------ [2012-05-13 18:10:31] d...@php.net Description: ------------ session.auto_start can currently be set in PHP_INI_ALL - however this is illogical and confusing. When session.auto_start = 1, a session is started when PHP initialises according to the session.save_handler and session.save_path settings PHP starts up with. This makes it impossible to configure custom save handlers since PHP will have already started the session before userland code is executed. Furthermore, this ini value can be modified at runtime, in PHP_INI_USER context which makes no sense, since if it was 1 at start-time, sessions will have already started; and if the it was 0 at start-time, sessions will only be started when session_start() is explicitly called - the setting is pointless at runtime. Thus the context in which session.auto_start can be set should change to at least PHP_INI_PERDIR. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62015&edit=1