You are here: Re: Problem with recursive page and session variable « All PHP « IT news, forums, messages
Re: Problem with recursive page and session variable

Posted by Shelly on 05/22/05 16:46

"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:ac%je.442$RG2.129@newsfe6-gui.ntli.net...
> Shelly wrote:
>> I set a session variable on error in the login page and then call the
>> login page again. I test on that session variable but it shows as not
>> set. I checked with an echo immediately after setting the error session
>> variable so I am 100% positive that it is set. The recursive entry to the
>> login page echos a message that the error session variable is unset.
>>
>> Any clues?
>>
>> Here is the setting code and the testing code (commented out)"
> <... SNIP CODE...>
>
> Did you call session_start() at any point?

Yes. Anyway, the page is calling itself. In order to have set it in the
first place I needed to have called session_start().

Shelly

 

Navigation:

[Reply to this 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

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