Forum Moderators: coopster

Message Too Old, No Replies

Login

         

yllai

6:05 am on Apr 15, 2004 (gmt 0)

10+ Year Member



Where can i get the example of php code for user login function. I start to make my first page as user login page before they can view all the content in my site.

Any example? Or how to start?

Thanks.

tomda

6:57 am on Apr 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Start with this one :
Creating a Membership System
[phpfreaks.com...]

Tomda

rubenski

11:54 pm on Apr 15, 2004 (gmt 0)

10+ Year Member



A very easy way to seal of a part of your site (single page, directory, anything) is by using .htaccess and .htpasswd. This will result in a login box like this one

<snip>

After the user logs in you can track that user with PHP's $REMOTE_USER variable. $REMOTE_USER contains the login name for that user.

Use Google or the search to find more info if you are interested in this option. It is really very simple.

[edited by: jatar_k at 8:51 pm (utc) on April 16, 2004]
[edit reason] removed url [/edit]