ID: 26434 User updated by: ahc at ahc dot cz Reported By: ahc at ahc dot cz -Status: Feedback +Status: Open Bug Type: Session related Operating System: Linux PHP Version: Irrelevant New Comment:
I'm sorry, I cannot use it, I'm not the admin of the server. Previous Comments: ------------------------------------------------------------------------ [2003-11-27 14:07:12] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-11-27 05:37:27] ahc at ahc dot cz Description: ------------ After filling variable $_SESSION["user_id"] I was unable to fill any other new $_session variable. PHP version 4.3.1 Reproduce code: --------------- session_start(); if (!empty($_REQUEST["auth_user"])) $_SESSION["user"]=$_REQUEST["auth_user"]; if (!empty($_REQUEST["auth_pass"])) $_SESSION["pass"]=$_REQUEST["auth_pass"]; if (!empty($_SESSION["userRow"])) return; $result=execQuery("SELECT * FROM table_name WHERE user_name=\"".$_SESSION["user"]."\" AND user_password=\"".md5($_SESSION["pass"])."\" AND user_active=1"); $_SESSION["userRow"]=mysql_fetch_assoc($result); $_SESSION["user_id"] = $_SESSION["userRow"]["user_id"]; $_SESSION["user_num"] = $_SESSION["userRow"]["user_num"]; Expected result: ---------------- $_SESSION["user_num"] should be filled with the content of $_SESSION["userRow"]["user_num"] Actual result: -------------- $_SESSION["user_num"] is not filled. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26434&edit=1