Re: Session Tracking Problem
| From: | Richard Baskett | Date: | Sat, 28 Jul 2001 16:22:49 +0000 |
| Subject: | Re: Session Tracking Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60057@lists.php.net to get a copy of this message | ||
You need to make sure you do a session_start at the beginning of each page
example:
First Page:
<?
session_name(login);
session_start();
session_register("Email");
session_register("Password");
?>
<HTML>
Other Pages:
<?
session_name(login);
session_start();
?>
<HTML>
> Hi All,
> 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";
> }
>
> $HTTP_SESSION_VARS["User_name"] is returning empty value in most of the
> location especially at Middle East after even registering the session
> values.
>
> Please fix the problem.
>
> Regards,
> khuram latif
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>