The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Best way to create a login form to access private area

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #40034

    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.


    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!


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

    Found this link very helpful for anyone else that wants to know…


    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)
  • The forum ‘Back End’ is closed to new topics and replies.