help needed with session variables
| From: | Pushpinder Singh Garcha | Date: | Mon, 27 Jan 2003 21:44:09 +0000 |
| Subject: | help needed with session variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133306@lists.php.net to get a copy of this message | ||
hello,
I am making use of sessions in my PHp/MySQL Database application. When the user is successfully authenticated against the database, a session is created in following manner:
session_register("valid_user","firstname","lastname");
$valid_user = $login;
$firstname = $first_name;
$lastname = $last_name;
While I am able to use the $valid_user variable all thru the sesion , when I try to use the $valid_user it works fine (i.e. I am able to access the value) throughout the session, however when I try to use the other two registered session variables i.e firstname and lastname, I am not able to extract the value. Can you suggest what might be going wrong. Note I am locally testing the setup on my Mac.
Many Thanks
Pushpinder Singh Garcha
_________________________________
Web Architect