How do I create a Member Login Page for Website ?

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?

Comments

  • nickmack
    nickmack Posts: 4,435 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    seddsmt wrote: »
    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.
  • wonka
    wonka Posts: 484 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    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!
  • isofa
    isofa Posts: 6,091 Forumite
    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 helps
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.