From:             drak
Operating system: 
PHP version:      5.3.13
Package:          Session related
Bug Type:         Bug
Bug description:Session auto-start issues

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 bug report at https://bugs.php.net/bug.php?id=62015&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62015&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62015&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62015&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62015&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62015&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62015&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62015&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62015&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62015&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62015&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62015&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62015&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62015&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62015&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62015&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62015&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62015&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62015&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62015&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62015&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62015&r=mysqlcfg

Reply via email to