|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-12-02 03:21 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 22:00:02 2025 UTC |
Description: ------------ hi,sniper! can you tell me how to solve this problem? The php.ini is fault.But the session create two files in /tmp.One is the correct,the other is empty. Thanks! ---------------------login.php------------------- ... $user_array1=sybase_fetch_row($result); print $user_array1[1];/*not null--right*/ sybase_close($dbHandle); session_start(); session_register("user_array1"); .... -----------------end---------------------------- -------------------the other file--------------- session_start(); print $user_array1[1];/*null-not right*/ ..... ----------------------end---------------- thanks! Reproduce code: --------------- ---------------------login.php------------------- ... $user_array1=sybase_fetch_row($result); print $user_array1[1];/*not null--right*/ sybase_close($dbHandle); session_start(); session_register("user_array1"); .... -----------------end---------------------------- -------------------the other file--------------- session_start(); print $user_array1[1];/*null-not right*/ ..... ----------------------end---------------- Expected result: ---------------- i want "print $user_array1[1];" not null; Actual result: -------------- null And the session create two file in /tmp.