Re: How to create basic LOGIN procedure
| From: | Justin French | Date: | Sat, 10 Aug 2002 11:43:42 +0000 |
| Subject: | Re: How to create basic LOGIN procedure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111940@lists.php.net to get a copy of this message | ||
Check out Kevin Yank's article "restricting page access with php & mysql"
(or something like that!) on webmasterbase.com / sitepoint.com.
Justin French
on 10/08/02 7:19 PM, Kristoffer Strom (kristoffer@kristoffer.com) wrote:
> This PHP stuff is still pretty new to me (still prefer IBM's NetData), so I
> need help to create a login procedure for a website.
> The point being to make sure only authenticated people can access the admin
> pages and post/edit news items and stuff. Should be simple, huh?
>
> Anyways, the three objectives are:
> 1. Login that checks the username and password with a user defined table in
> a MySQL database. Not actual authentication for the database!
> 2. Store the username and load the e-mail for that user from that table and
> store them both as a session variable.
> 3. Make sure that none of the pages in that directory works unless you're
> athenticated
>
> Help? Is there some ready function for all of this that I haven't found?
> So far I've only run across the actual database authentication, but I don't
> wanna add users to the database.
>
> /Kristoffer (from www.NataliePortman.com)
>
>