PDA

View Full Version : user login script


Gerrit
January 26th, 2006, 00:00
I'm going to need a user login script for my 'I make websites' website. ( yes, a little slow right now so I started working on that site again :) )

Can any of you recommend a free script which should basically do the following: redirect a user ( after a successfull login ) to her/his secured section of my site, based upon username.
I'm going to use this feauture for showing partly completed sites, stats for hosting clients etc.

I'm sure there are scripts around, but I didn't find something which suits my needs yet. Before I dive into php programming ( and postponing the work on my own site once more ) I'd thought I ask it here :)

Any of you using a script like that and willing to share?

Thanks in advance!

Digiscape
January 26th, 2006, 00:35
A PHP login script will require some PHP code on every page you want to display, to check the user is valid. For access to stats and sites under development password protecting directories using .htaccess may be a better option. This requires Linux/Apache, and many control panels like cPanel or Plesk have a password protection feature built in.

Heres a .htaccess and .htpasswd generator which you would place in the directory you want to protect http://www.htaccesstools.com/htaccess-authentication/


Regards
Jason

Gerrit
January 26th, 2006, 01:20
I thought of that as well - easy to implement and safe enough.
Maybe I should just do that.
Thanks for the suggestion :)