ID: 26497
User updated by: xingg_wu at yahoo dot com dot cn
Reported By: xingg_wu at yahoo dot com dot cn
Status: Open
Bug Type: Session related
Operating System: redhat linux 9
PHP Version: 4.3.3
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[2003-12-02 01:57:01] xingg_wu at yahoo dot com dot cn
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26497&edit=1