Reply to Re: Session Variables Wierdo

Your name:

Reply:


Posted by Sheldon Glickler on 02/24/06 17:06

As ususal, or at least as so often happens, right after I am totally
frustrated and post to the group, a lightbulb goes on and I solve the
problem.

Why did this happen]? Because I had a check if $_POST['currentID'] was set
and if not, then I would clear all the OTHER session variables. Pilot
error. All I had to do was think about how the currentID could be treated
differently than the others.

Thanks anyway.

"Sheldon Glickler" <sheldonlg@bellsouth.net> wrote in message
news:kEELf.29376$Ly6.6575@bignews5.bellsouth.net...
> 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

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