Edit report at https://bugs.php.net/bug.php?id=62015&edit=1

 ID:                 62015
 Comment by:         d...@php.net
 Reported by:        d...@php.net
 Summary:            Session auto-start issues
 Status:             Closed
 Type:               Bug
 Package:            Session related
 PHP Version:        5.3.13
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Sorry if I made a mistake looking at the commit, but it looks like this was 
only 
applied to the 5.4 tree. As it's a bug fix, it should also be applied to 5.3


Previous Comments:
------------------------------------------------------------------------
[2013-08-10 09:30:52] yohg...@php.net

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

------------------------------------------------------------------------
[2013-08-10 09:30:46] yohg...@php.net

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

------------------------------------------------------------------------
[2013-08-10 09:30:44] yohg...@php.net

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

------------------------------------------------------------------------
[2012-05-15 06:04:30] yohg...@php.net

I think this is reasonable change, since it would not work as PHP_INI_ALL.

------------------------------------------------------------------------
[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

Reply via email to