php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24307 $HTTP_COOKIE_VARS is NULL
Submitted: 2003-06-24 01:43 UTC Modified: 2003-07-01 21:09 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nakayama at hb dot mdis dot co dot jp Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.2 OS: RedHat9 Linux 2.4.18-9
Private report: No CVE-ID: None
 [2003-06-24 01:43 UTC] nakayama at hb dot mdis dot co dot jp
Description:
------------
Now, in the Web application which we are developing, 
session information is got by Cookie. 
A trouble is not occured by the test of the application in the few clients. 
However, if the load of 200 threads is executed by Microsoft Web Application Stress Tool, 
the value of Cookie may serve as NULL in the about beyond 160-200 sessions, 
and a few error may occur. 
Since the client has sent Cookie if a packet monitor is seen, 
the problem by the side of a server is considered. 

The Web server is using apche1.3.27 on RedHat9(kernel2.4.20-18.9) 
with glibc-2.3.2-27.9.
configure of PHP4.3.2 is performed as follows. 
./configure --enable-trans-sid \
 --with-apxs=/usr/local/apache/bin/apxs \
 --enable-mbstring \
 --with-mysql=/usr/local/mysql 

MaxClient of apache(in httpd.conf) is set as 50. 
In php.ini, a change of those other than [mbstring] is not made. 
(session.cookie_lifetime is also set to 0. register_globals is also set to "Off")

Does anybody know where this null comes from? 


Reproduce code:
---------------
This program code is below.
 function sess_get_id(&$ssid) {
     global $HTTP_COOKIE_VARS;
     $ret  = NORMAL_END;
     $ssid = $HTTP_COOKIE_VARS[COOKIE_NAME];
     if (chk_ssid($ssid) == true) {
         $ret = NORMAL_END;
     } else {
         $ret = NULL_VALUE;
         return $ret;
     }
 }

Expected result:
----------------
We expect $HTTP_COOKIE_VARS is not NULL.


Actual result:
--------------
We set COOKIE value by setcookie function.
But, parhaps, we can't get a $HTTP_COOKIE_VARS value while a high stress has been the web server.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 11:51 UTC] sniper@php.net
Please provide a full script which can be used to reproduce this. And try to disable mbstring altogether. (compile PHP without it)



 [2003-07-01 21:09 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC