Re: [PHP] session problem using headers

2001-07-16 Thread David Allen
Further to the last e-mail the plot thickens... If cookies is turned on, the line echo "SID: $PHPSESSID"; displays the session id. I thought the whole idea of using $PHPSESSID was so that sessions would work with cookies turned off! Am I missing something here? I disabled cookies via the

Re: [PHP] session problem using headers

2001-07-16 Thread David Allen
Thanks for your email. I did the changes you suggested, and the page is now going to" input.php?=" ie no record of the SID. I added the following lines to the code. echo "SID: $SID"; and echo "SID: $PHPSESSID"; and $SID was not displayed i.e just SID: was displayed. I guess this is the problem

RE: [PHP] session problem using headers

2001-07-13 Thread scott [gts]
you're passing the PHPSESSID incorrectly, it seems you must do something like this: 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 [