|
Posted by Jerry Stuckle on 12/05/06 13:11
Steve JORDI wrote:
>>When you make the call
>> header("Location: ./passeportswelcome.php") ;
>>you are telling the browser to load a new page. But on that page you
>>don't have a session-start() - or the include for your class.
>
>
> Ok, the include is actually in my source code. but not session_start.
>
>
>>Since it's a new page, everything starts over. You need the include and
>> session_start() call here, also.
>
>
> Yes, that did it! THANKS!!!
> I didn't know that session_start() was also used to resume a session.
> I thought that having it once was enough, but as you said, the web
> being a stateless environment...
> Wow, now I know that, it seems logical :-)
>
> Anyway, again, thanks a lot for your patience and your help.
>
> Sincerely,
> Steve JORDI
>
> (Remove the K_I_L_LSPAM from my email address)
> ------------------------------------------------
> 1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
> Switzerland WWW: www.sjordi.com
> ------------------------------------------------
> Volcanoes at www.sjordi.com/volcanoes
> MovieDB at www.sjmoviedb.com
> ------------------------------------------------
Yep, you need session_start() at the top of every page which uses the
session.
Glad it's working for you!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|