first you should check what's the name of the sessions in your php.ini file. Default is PHPSESSID.
In your access.php file put this after a session is started.
$sess=session_id();
header('location:welcome.php?PHPSESSID=$sess');
I think that should work. :0)))
Rajasekar wrote:
hi anyone help us,
we have a file called access.php. in that we are authenticating the user, after authenticating we are registering session variables for that user.
if the authenticating is right, we redirecting him to another page called welcome.php.
the problem is the value of the registered variable is showing blank in our welcome.php. this problem arises when we are using the header function, whereas if are using the <a href> the problem is not there. but we have to redirect the user automatically to the welcome page with his values registered in the error.php.
the question is?
whether the using the header function the session variables passed from one page to other. if not so, is there any other possibility to redirect the user from one page to another page without having link.
waiting for replies.
shekar