SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot mcd's Avatar
    Join Date
    Dec 2004
    Location
    Caldwell, NJ
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a login page solution

    Not entirely sure what exactly I'm asking for here, but basically I need to create a page for a client that allows a secure login to access another page. It just needs one username/password combination, and it has to be configureable to automatically log out a user when they close their browser window.

    Any suggestions?

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You could build it all into the one script so that when they enter the userid and password the page reloads displaying the password protected section in place of the login form. See Felgall PHP - Password Protecting Part of a Page for an example that uses PHP (the code used to do it will display when you enter the correct username and password - which for the purpose of this example only is displayed in the page).
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Zealot mcd's Avatar
    Join Date
    Dec 2004
    Location
    Caldwell, NJ
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very cool, thanks Stephen. Think I'm going to give this a try.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •