php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26497 Session not work well
Submitted: 2003-12-02 01:57 UTC Modified: 2003-12-02 03:21 UTC
From: xingg_wu at yahoo dot com dot cn Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3 OS: redhat linux 9
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xingg_wu at yahoo dot com dot cn
New email:
PHP Version: OS:

 

 [2003-12-02 01:57 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-02 03:21 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Please ask support questions elsewhere, this is not discussion forum. (There is no bug here)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 05:01:34 2025 UTC