#22396 [NEW]: session id doesn't change when session_start is called multiple times

From: Date: Mon, 24 Feb 2003 17:34:42 +0000
Subject: #22396 [NEW]: session id doesn't change when session_start is called multiple times
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34110@lists.php.net to get a copy of this message
From: milan_mlynarcik at hotmail dot com Operating system: WinXP PHP version: 4.3.0 PHP Bug Type: Session related Bug description: session id doesn't change when session_start is called multiple times <?php session_start(); $sid1 = session_id(); session_unset(); session_destroy(); // ...and create new one session_start(); $sid2 = session_id(); if ($sid1 === $sid2) { print 'equals'; } else { print 'doesn\'t equal'; } ?> This prints 'equals'...is it OK ? I think that session id should change between two different sessions... -- Edit bug report at http://bugs.php.net/?id=22396&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22396&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22396&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22396&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22396&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22396&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22396&r=support Expected behavior: http://bugs.php.net/fix.php?id=22396&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22396&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22396&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22396&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22396&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22396&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22396&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22396&r=gnused

« previous php.bugs (#34110) next »