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:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 2:27 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to