RE: [PHP] passwd protected page
| From: | Chris Kay | Date: | Thu, 26 Jun 2003 07:18:34 +0000 |
| Subject: | RE: [PHP] passwd protected page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152925@lists.php.net to get a copy of this message | ||
Why not use sessions, store a $loggedin value in a session or cookie
And check that at the top of each page.. no session = no access
Hope this helps
---------------------------------------------------------
Chris Kay
Techex Communications
Website: www.techex.com.au Email: chris.kay@techex.net.au
Telephone: 1300 88 111 2 - Fax: 1300 882 221
---------------------------------------------------------
-----Original Message-----
From: Bibhas Kumar Samanta [mailto:bks@cal.interrasystems.com]
Sent: Thursday, 26 June 2003 5:14 PM
To: Sichta Daniel
Cc: php-general@lists.php.net
Subject: Re: [PHP] passwd protected page
how should I pass the logged in user to other pages ?
In the database at the same time there might be several user
logged in ?
Thanks,
Bibhas
Sichta Daniel wrote:
>
> Hi,
>
> You can validate user on login page and sets the flag in database
table.
> Then on each page you have to check that flag again ....
>
> DS
>
> -----Original Message-----
> From: Bibhas Kumar Samanta [mailto:bks@cal.interrasystems.com]
> Sent: Thursday, June 26, 2003 8:52 AM
> To: php-general@lists.php.net
> Subject: [PHP] passwd protected page
>
> Hi,
>
> Without using sessions , how can I create
> passwd protected pages in mysql/php.
>
> I need to remember the user from login page and
> validate this user in other pages.
>
> Thanks,
> Bibhas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content
filtering.
http://www.mailguard.com.au/mg