you're passing the PHPSESSID incorrectly, it seems

you must do something like this:
  <A HREF="nextpage.php?<?=SID?>">
or
  header("Location: nextpage.php?$SID");

what you're doing now will go to page "input.php?=SID"
instead of "input.php?938sa9fa98f7daf987a9s" (or similar)


> -----Original Message-----
> From: David Allen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 6:45 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] session problem using headers
> 
> 
> Hi,
> 
> I am having problems with sessions. With cookies turned on it works
> fine. Turn off cookies it fails.
> 
> I have tried both
> 
> header("Location: input.php?=SID");
> header("Location: input.php?PHPSESSID=".PHPSESSID);
> 
> to pass the session id to the programme input.php but neither works.
> 
> The first lines of input.php are
> 
> <?
> session_register("userid");
> ?>
> 
> userid is the variable  I wish to pass. However, I have no other code
> related to sessions in this script. Do I need in some way "tell" the
> script to use this session id?
> 
> As a have said before, it works fine if cookies are turned on.
> 
> Thanks in advance for any help.
> 
> David
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to