Re: authentication
| From: | Pankaj Ahuja | Date: | Wed, 21 Feb 2001 06:45:48 +0000 |
| Subject: | Re: authentication | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6813@lists.php.net to get a copy of this message | ||
I forgot to mention, my server runs PHP 3
----- Original Message -----
From: Ronnie Esguerra
To: PHP
Sent: Wednesday, February 21, 2001 12:15 PM
Subject: FW: [PHP-DB] authentication
why not use sessions?
on the first page do the login and start the session. throw the login to
every other page using session variable. therefore when a user browses on
the next page without the required variable you kick the page out.
or you can use a database to track the user but it is more complicated.
ronnie
> -----Original Message-----
> From: Pankaj Ahuja [mailto:pankaj@itinfobank.com]
> Sent: Wednesday, February 21, 2001 2:27 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] authentication
>
>
> Hi all
>
> I need to authenticate a user and on successful login he is
> redirected to a
> page. This works fine. However, this is not secure as the page to
> which the
> user is redirected can be accessed directly as well. What I need is when
> someone tries to access the page without logging in first, he should be
> taken to the login page
>
> Thanks
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net