|
Posted by Oli Filth on 05/22/05 17:01
Shelly wrote:
> "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.
You aren't calling the page, you're redirecting. But regardless, what does that
have to do with session_start()?
> In order to have set it in the first place I needed to have called
> session_start().
Not necessarily true.
Can you post the complete code for this page, so we're able to see what's going
wrong, because it's not apparent from the snippets you've posted so far.
P.S. You must use an absolute URL in a Location header. But this is unlikely to
be the cause of your problem.
--
Oli
Navigation:
[Reply to this message]
|