ID: 20776
Updated by: sniper@php.net
Reported By: judd@ob-wan.com
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Win2K Server
PHP Version: 4.2.3
New Comment:
I did mean _SHORT_ example script, one that is max 10-20 lines
long..not some 10-20 files!
Previous Comments:
------------------------------------------------------------------------
[2002-12-03 12:00:23] judd@ob-wan.com
OK, I've sent a cutdown of the program, hope that helps.
------------------------------------------------------------------------
[2002-12-03 07:31:53] judd@ob-wan.com
I've already reported a crashing bug against 4.3.0RC2 so I won't be
trying any CVS snapshots just yet. See what I can do about a sample
script, but it may be a couple days since I'm working in about 6 hrs.
------------------------------------------------------------------------
[2002-12-03 02:34:40] sniper@php.net
Please provide a short but complete example script which can be used to
reproduce this. Also note that PHP 4.3.0-dev (the latest stable CVS
snapshot) has some fixes regarding session issues so you should try it
out too, from:
http://snaps.php.net/
------------------------------------------------------------------------
[2002-12-02 21:17:17] judd@ob-wan.com
At top of login page:
session_start();
session_register("SESSION");
if (! isset($SESSION)) { echo("Dead session!!<br>"); }
From a direct <a href> style link I get "Dead session!!" at the top of
the page. From a redirect via require_login() (see below) it works.
Sure looks like a bug to me.
------------------------------------------------------------------------
[2002-12-02 19:23:14] judd@ob-wan.com
I would have thought that code with two results depending on the how
the return path is acquired would definitely imply a bug, or am I
missing something obvious here? I have a ton of programming experience
(including proprietary systems similar to but more complex than PHP)
but I'm very new at PHP itself so you may be right.
------------------------------------------------------------------------
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/20776--
Edit this bug report at http://bugs.php.net/?id=20776&edit=1