From: barton dot tomas at gmail dot com
Operating system: windows
PHP version: 5.2.2
PHP Bug Type: Session related
Bug description: always generate new SID
Description:
------------
After calling session_start() generates two session files, $_SESSION
variable is strored in which SID is forgotten.
Reproduce code:
---------------
<?php
session_start();
echo 'SID:'.session_id();
$_SESSION['a'] = 3;?>
<p>look on <a href="another_page.php">next</a></p>
another_page.php
---
<?php
session_start();
if (isset($_SESSION['a'])){
echo 'Session var a = ',$_SESSION['a'].'<br />';
}else {
echo 'Session is not registered.<br />';}
echo 'SID:'.session_id(); ?>
Expected result:
----------------
SID:gahug37g6ga2e4qjuoo8988d62
look on next
----
Session is not registered.
SID:5elroalaf46hc4muhle5c18896
--
Edit bug report at http://bugs.php.net/?id=41360&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41360&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41360&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41360&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41360&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41360&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41360&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41360&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41360&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41360&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41360&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41360&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41360&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41360&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41360&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41360&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41360&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41360&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41360&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41360&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41360&r=mysqlcfg