Bug #62015 [Asn->Csd]: Session auto-start issues
Edit report at https://bugs.php.net/bug.php?id=62015&edit=1
ID: 62015
Updated by: yohgaki@php.net
Reported by: drak@php.net
Summary: Session auto-start issues
-Status: Assigned
+Status: Closed
Type: Bug
Package: Session related
PHP Version: 5.3.13
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of yohgaki
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e9b128c1bfb64e50c5e361959a1a7ccd176d1324
Log: Fixed Bug #62015 Changed session.auto_start to PHP_INI_PERDIR. It is simply wrong and never
worked if the value is changed at runtime
Previous Comments:
------------------------------------------------------------------------
[2012-05-15 06:04:30] yohgaki@php.net
I think this is reasonable change, since it would not work as PHP_INI_ALL.
------------------------------------------------------------------------
[2012-05-13 18:10:31] drak@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
Thread (5 messages)