From: zoop at lone dot ath dot cx Operating system: Solaris 2.8 PHP version: 4.3.3 PHP Bug Type: Session related Bug description: Session Variable is cleared with every connection
Description: ------------ The problem occured in php 4.3.3 apache 1.3.27 solaris 2.8 I seemed to have a problem with the $_SESSION Variable I could set something in the array and the print it but I couldn't go to another page. It would have an empty array. I downgraded to 4.3.2 and it works without any probems Reproduce code: --------------- if (!$_SESSION['the']) { print here; } $_SESSION['the'] = 1 <html> submit to load the page again Expected result: ---------------- the first time you load the page it should print here and whatever html there might be. after you reload the page or post to it it shouldn't print here. Actual result: -------------- it prints here every time you load the page. if you print the value of $_SESSION['the'] it is undefined. -- Edit bug report at http://bugs.php.net/?id=25393&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25393&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25393&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25393&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25393&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25393&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25393&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25393&r=support Expected behavior: http://bugs.php.net/fix.php?id=25393&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25393&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25393&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25393&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25393&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25393&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25393&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25393&r=gnused