• # May 3, 2013 at 10:09 pm


    I recently came across the following code snippet for password protecting site directories. I’m curious though if anyone can suggest a method for customizing the login screen…essentially a login form within the html page.

    If you have a more efficient way to approach this…I’m all ears. Thank you!

    **Code Snippet:**

    # May 4, 2013 at 6:18 am

    This reply has been reported for inappropriate content.

    As far as I’m aware, most browsers don’t provide a “login screen” – simply a dialogue box. How are you imagining customising it? Do you want users to be taken to a different page first to authenticate?

    # May 4, 2013 at 2:30 pm

    This reply has been reported for inappropriate content.

    Pretty much…essentialy im looking to make the login area on a designated page…independent of the standard browser login. Similar to the way wordpress admin login is

    # May 5, 2013 at 9:43 pm

    This reply has been reported for inappropriate content.

    Then I suspect htaccess is not the solution. Look instead towards using a database to manage authentication. It’s not a complicated process, but will require you to read around the subject a little bit.

    Unfortunately, I haven’t seen many good tutorials on session management. Most of them oversimplify the process for illustration, resulting in insecure systems. My advice would be to look at the source code of a few open source projects that include login systems to see how they handle it.

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

You must be logged in to reply to this topic.