|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-27 14:07 UTC] iliaa@php.net
[2003-11-27 14:44 UTC] ahc at ahc dot cz
[2003-11-27 14:48 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
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.