From:
Operating system: Windows 7 x64
PHP version: 5.4.0
Package: Session related
Bug Type: Bug
Bug description:session_regenerate_id() do not create session file
Description:
------------
session_start() creates and locks session file, but session_regenerate_id()
doesn't do it. After session_regenerate_id() session is started with new
ID, but the file is not created immediately (is created when session is
closed) and therefore is not locked.
I think this causes bugs like #49462.
Test script:
---------------
$path = ini_get('session.save_path') . '/sess_';
session_start();
// starts session & creates and locks file
echo is_file($path . session_id()); // -> TRUE
session_regenerate_id();
// starts new session, but file is not create!
echo is_file($path . session_id()); // -> FALSE
--
Edit bug report at https://bugs.php.net/bug.php?id=61470&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61470&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61470&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61470&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61470&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61470&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61470&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61470&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61470&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61470&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61470&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61470&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61470&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61470&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61470&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61470&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61470&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61470&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61470&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61470&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61470&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61470&r=mysqlcfg