From: zvara at email dot cz Operating system: windows server PHP version: 5.1.4 PHP Bug Type: Session related Bug description: does not store my session varriables
Description: ------------ problem is that my session works on one server(apache) with php 5.0.5 and doesn't on the other(apache) with php 5.1.2, i tried to figure out what this problem exatcly is and i beheld that session varriables are not stored please try to send me some tips thanks Reproduce code: --------------- . . . if (uis('logout')) { $this->uid = null; $this->uname = null; echo $_SESSION['zvara']; info('Boli ste odhlásený!'); } if (uis('login')) { // admin login = new user $login = sql_esc($_POST["{$this->tag}_login"]); $pass1 = sql_esc($_POST["{$this->tag}_pass"]); $db->query("SELECT [USER_ID], [PASSWORD], [USER_NAME], [FIRST_NAME], [LAST_NAME] FROM [Users] WHERE [USER_NAME]='{$login}'"); if (list($id,$pass2,$un,$fn,$ln) = $db->row()) { if ($this->testpass($pass1,$pass2)) { $this->uid = $id; $this->uname = $un; ///////////////////// $_SESSION['zvara']= "stored"; //echo $_SESSION['zvara']; ///////////////////// info("Vitajte $fn !"); } else { $wp = "Nesprávne heslo"; info($wp); return $this->error($wp); } } else { $wl = "Nesprávny login"; info($wl); return $this->error($wl); } } . . . Expected result: ---------------- $_SESSION['zvara'] is not stored; but with php 5.0.5 it's stored -- Edit bug report at http://bugs.php.net/?id=38411&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38411&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38411&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38411&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38411&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38411&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38411&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38411&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38411&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38411&r=support Expected behavior: http://bugs.php.net/fix.php?id=38411&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38411&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38411&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38411&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38411&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38411&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38411&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38411&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38411&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38411&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38411&r=mysqlcfg