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:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 5:44 AM
To: [EMAIL PROTECTED]
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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to