Bug #16263 Updated: session.start() create new empty session file and not resume existing session
| From: | jason at insidemacgames dot com | Date: | Sat, 15 Jun 2002 20:15:22 +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-10510@lists.php.net to get a copy of this message | ||
ID: 16263
Updated by: jason@insidemacgames.com
Reported By: kur@natur.cuni.cz
Status: No Feedback
Bug Type: Session related
Operating System: Windows 2000
PHP Version: 4.1.2
New Comment:
This is happening to me in PHP 4.0.6, and right out of the
blue at that. Some session code that has worked fine for a
year and a half on several different machines and versions
of PHP, etc. (including the current machine of course) just
stopped working suddenly last night and is still broken
after a restart of Apache and even a reboot.
Machine is running Red Hat Linux 7.1, though via Red Hat
Network all packages are upgraded to the latest Red Hat QAd
versions (which is why I'm still at PHP 4.0.6). What is
really bizarre is sessions continue to work on another part
of my site but are failing on this set and a test set of
pages I've just created as well.
Absolutely nothing has changed; all of a sudden some of my
session-using pages started to create blank session files
(the cookie exists, the session file exists, there's
nothing in it).
Previous Comments:
------------------------------------------------------------------------
[2002-05-16 00:00:04] php-bugs@lists.php.net
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".
------------------------------------------------------------------------
[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...
------------------------------------------------------------------------
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