ID: 38411 Updated by: [EMAIL PROTECTED] Reported By: zvara at email dot cz -Status: Open +Status: Feedback Bug Type: Session related Operating System: windows server PHP Version: 5.1.4 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-08-10 11:24:26] zvara at email dot cz 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 this bug report at http://bugs.php.net/?id=38411&edit=1