Posted by Sheldon Glickler on 02/24/06 16:25
Here is a nutty one:
I have session variables in my page. Take two of them:
$_SESSION['currentID'] and $_SESSION['firstName'].
Now $_SESSION['currentID'] is set before the page and
$_SESSION['firstName'].is set on entry to the page. The
$_SESSION['firstName'].displays properly in the following html code, so I
know it gets set.
When I click on a button named editFoo, I do a
if (!isset($_POST['editFoo']) {
header{"Location: blah");
}
What happens is that the $_SESSION['currentID'] is still there but the
$_SESSION['firstName'].is empty.
I checked the sending page by putting an echo before the if statement (which
is the last before going into display the html and after the
$_SESSION['firstName'].has been set. Both variables display perfectly.
When I click on the editFoo button, only the $_SESSION['currentID'] displays
properly and the other displays empty.
I have @session_start() in all.
Any clues?
Shelly
[Back to original message]
|