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?

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).

Very cool, thanks Stephen. Think I’m going to give this a try.