Forums

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
    Posts
  • #40034
    croydon86
    Participant

    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.

    #110900
    fectio1
    Member

    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!

    #116119
    croydon86
    Participant

    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/

    #123857
    puig_andrew
    Member

    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.