Reply to Session Variables Wierdo

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация