Re: sessions / cookies / header("Location...
| From: | Chris Lee | Date: | Thu, 17 May 2001 19:35:56 +0000 |
| Subject: | Re: sessions / cookies / header("Location... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53314@lists.php.net to get a copy of this message | ||
yup, your browser is not accepting cookies. thats a good guess. when a browser does not accept
cookies, trans-sid will kick in, trans-sid will not work on full urls, just reletive urls.
no trans-sid
http://www.mediawaveonline.com/index.php
trans-sid
/index.php
header redirectect require (supposed to require) full urls. in other words its a good idea to put
PHPSESSID=$PHPSESSID on all your full urls anyhow, just incase for non-cookie browsers.
--
Chris Lee
lee@mediawaveonline.com
"Christian Dechery" <lemming@vento.com.br> wrote in message news:5.0.0.25.2.20010517133215.0212da10@pop.tanamesa.com.br...
I have a page that does a login... right after the login is successfull it
registers a session var called 'userid'... and does a header("Location:
newpage.php") which checks for the existance of this var... if it exists it
will show, otherwise it goes back to the login page...
the weird thing is... it always worked fine, even if I logged in and out
with three different users to test it... but now it only works if I replace
the header() thing with:
header("Location: newpage.php?PHPSESSID=$PHPSESSID")
why is this weird now? it use to work...
and the weird thing is... while in newpage.php the user does some stuff
which calls itself and also gets this 'userid' var... and gets it fine
without any PHPSESSID stuff...
any clues?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net