|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-10 11:51 UTC] tony2001@php.net
[2006-08-18 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
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