We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
How do I create a Member Login Page for Website ?

Legacy_user
Posts: 0 Newbie
in Techie Stuff
Hi All
I want to add a members only section to my website were they can enter a username and password.
Does anyone know of any good on-line tutorials that I could possibly use?
I want to add a members only section to my website were they can enter a username and password.
Does anyone know of any good on-line tutorials that I could possibly use?
0
Comments
-
Hi All
I want to add a members only section to my website were they can enter a username and password.
Does anyone know of any good on-line tutorials that I could possibly use?
How secure does it need to be? Are we talking one password for all or individual logins? For individuals, you'll need some sort of database to store the details. Does this need to be encypted?
I previously used some ASP to query a MySQL database to check username/password. These were stored encrypted using an encryption/decryption script. Subsequent members pages were then checked against a encrypted cookie to see if the login was valid. This cookie can then be destroyed after a set period or when the user logs out. Not completely foolproof, but pretty secure for my needs.
Google 'web page login scripts' and you should get plenty of samples.0 -
What sort of website do you have now?
Is it just a collection of HTML pages? Or do you use a content management system? PHP? ASP? Java?Of course, I may just be talking b****cks!0 -
If it's just a simple site running on a standard webserver like Apache, you can secure directories and their contents, complete with logins, using htaccess and htpasswd facilities.
So whenever a user requests a HTML page from the secured directory they'll be asked to login.
You have to maintain a list of users and encrypted passwords in the text file .htpasswd and without additional software users can't add accounts or change their password, but it's secure.
It's a little complex to describe in detail here, there is a good tutorial and info at: http://www.javascriptkit.com/howto/htaccess.shtml
Hope that helps0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.3K Banking & Borrowing
- 252.8K Reduce Debt & Boost Income
- 453.2K Spending & Discounts
- 243.3K Work, Benefits & Business
- 597.8K Mortgages, Homes & Bills
- 176.6K Life & Family
- 256.3K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards