Members Area

Hi,

I want to add a password protected members only area to my website.

Any good tutorials on how to do this?

Thanks.

Revise some php articles and codes to password protect your pages with the links below.

http://php.net/manual/en/features.http-auth.php
http://koivi.com/php-http-auth/

You will find a beginning there. The basic logic is:
A user supplies username and password.
You will verify that it is valid.
You will set a session that this current user has logged in.
In every pages, you will check for this session flag.
If flag is there, continue to serve the page. Otherwise, the session timed out, or the user logged out,

While logging out, the you will destroy the session/cookie for the user.