RE: [PHP] Registered sessions.
| From: | Ed Gorski | Date: | Wed, 04 Jun 2003 12:37:13 +0000 |
| Subject: | RE: [PHP] Registered sessions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150142@lists.php.net to get a copy of this message | ||
You need to append the session name and id to the header location everytime
you redirect that way. So your header redirect should read:
header('Location: researchpapers2.php?'.session_name().'='.session_id());
When you have normal links to other pages you don't have to do this but on
header redirects like the one above you do.
Hope this helps,
ed
-----Original Message-----
From: Angelo Zanetti [mailto:binc2@ctech.ac.za]
Sent: Wednesday, June 04, 2003 5:44 AM
To: php-general@lists.php.net
Subject: [PHP] Registered sessions.
Hi,
I have a php page that validates if a username and password are valid. if
they are the php page registers and assignes a session variable a value.
Then straight after that it automatically calls then next php page using the
header("Location: researchpapers2.php"); command. My question is: does the
session variable still get passed to the researchpapers2.php page, with the
header command? because it doesnt seem to receive a session variable. any
advice as to where i am going wrong???
thanx Angelo.