Bug #16263 Updated: session.start() create new empty session file and not resume existing session

From: Date: Thu, 16 May 2002 04:00:04 +0000
Subject: Bug #16263 Updated: session.start() create new empty session file and not resume existing session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7814@lists.php.net to get a copy of this message
 ID:               16263
 Updated by:       php-bugs@lists.php.net
 Reported By:      kur@natur.cuni.cz
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Session related
 Operating System: Windows 2000
 PHP Version:      4.1.2
 New Comment:

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2002-04-30 11:51:58] pryde@oldworld.de

Problem still exist in 4.2.0 release, but appears to occur less often.

I didn't try the fix yet since i use session_autostart, i guess i'll
have to wait till this is fixed : (

------------------------------------------------------------------------

[2002-04-20 03:19:08] alexv@yahoo.com

YES!!! After long hours, the "global $HTTP_SESSION_VARS;" worked 4 me
(PHP 4.1.2, WinXP, Apache 1.3.24, mod_php4).

Today's my birthday!!! Thanks for so beautyful birthday gift!!! (it
curious that the tip was post just a few hours ago).

------------------------------------------------------------------------

[2002-04-20 00:42:06] asiop@yahoo.com

This advice might be worth millions for some,
after a sleepless night and endless code comparisons, i found out that
adding 

global $HTTP_SESSION_VARS;

right after the

session_start();

solves the problem, even when using
$_SESSION
for your coding which is supposed to be global anyways, 
so till a formal fix comes up i hope this will help you too..

session_start();
global $HTTP_SESSION_VARS;
$_SESSION["HELLO"]="WORLD";

etc.

------------------------------------------------------------------------

[2002-04-17 04:33:30] pryde@oldworld.de

I did exchange all dll's, didn't help with the problem.

Sometimes it takes a little while to "loose" the session data,
somethimes it happens quickly...

------------------------------------------------------------------------

[2002-04-15 20:27:19] sniper@php.net

once again, whenever you update/downgrade PHP remember
to replace ALL the dlls and other binaries in your systems
with the ones found in the release packages.



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16263

-- 
Edit this bug report at http://bugs.php.net/?id=16263&edit=1



Thread (94 messages)

« previous php.bugs (#7814) next »