Re: [PHP] sessions not working when page redirects

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 19:50, Angelo Zanetti wrote: Im having a slightly weird problem with my session variables. when on a certain page call it A, I register a session variable and assign it a value. I then test if it is registered successfully and has the correct value on the same page,

Re: [PHP] sessions not working when page redirects

2004-08-10 Thread John W. Holmes
From: Angelo Zanetti [EMAIL PROTECTED] Im having a slightly weird problem with my session variables. when on a certain page call it A, I register a session variable and assign it a value. I then test if it is registered successfully and has the correct value on the same page, that works no

RE: [PHP] sessions not working when page redirects

2004-08-10 Thread Ford, Mike [LSS]
On 10 August 2004 13:19, Ron Stiemer wrote: Hi there, Try to add the session_id(); into the redirection: header(Location: ../admin/include/B.php?PHPSESSID= . session_id() ); No, no, no! Use the SID constant -- that's what it's for. It only has a value if you need one, so: