Password protect several html pages with php. User needs password only the first time.
Posted on 2009-07-10
It doesn't matter if I do it as a login from the homepage with username and password that then makes the 3 pages viewable, or as a pop-up password prompt upon a user's attempt to access one of the pages. I don't think I need to use a database at the moment because it will be the same username and password for everyone.
But it would like it so that the user doesn't have to keep entering the password every time he wants to access a protected page.
In an ideal world the solution will consist of one simple php script and a few lines in the html page to activate that script.
I really need to have done this yesterday, so I'm hoping that there's someone who can get me squared away this afternoon.