Grow your CSS skills. Land your dream job.

Best way to create a login form to access private area

  • # September 27, 2012 at 8:07 am

    Hi Guys

    I have a client that wants users to access a private area on their HTML website to download resources.

    Just wanted your advice on what the best solution would be to set this up.

    My knowledge in PHP is pretty poor.

    We have also spoke about moving their website over to a CMS such as wordpress. Would this be easier to do with WordPress via a plugin, or is it just as easy to implement on a static HTML site?

    Any advice would be greatly appreciated.

    # September 27, 2012 at 10:55 am

    You could install WordPress in a sub-directory of the static site. This way, you will get the best of both worlds. If you have never done a private user area, I think a plugin will be your best bet.

    Good Luck and Cheers!

    # December 2, 2012 at 7:07 pm

    Just an update, resolved this via htaccess, short and sweet.

    Found this link very helpful for anyone else that wants to know… http://www.htaccesstools.com/htaccess-authentication/

    # February 9, 2013 at 1:12 am

    Create a table in a database called admin, if the username and password entered in the form match the one in the database:

    Create a cookie and redirect to the admin area. To prevent unauthorized access you can check if the cookie is set on the admin pages.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".