session tracking problem
| From: | Khuram Latif | Date: | Fri, 27 Jul 2001 13:52:08 +0000 |
| Subject: | session tracking problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59944@lists.php.net to get a copy of this message | ||
Hi Sir,
I have a problem in session tracking,
After checking User name and password from database, I register a
session as
session_register("User_name");
For next page authentication, at the top of every page i check
if ($HTTP_SESSION_VARS["User_name"] != "")
{
// Display Page Contents
}
else
{
echo "Invalid User";
}
This code run fine in different location but not any where,
Please fix the problem.
Regards,
khuram latif