PHP password protection (2)
|
May 25, 2005
|
I found this awesome script at PHPBuddy that allows you to password protect a PHP page with some simple code. All you need to edit is the username and password, and insert your content after the script. It uses sessions, so it'll keep you logged in as long as there's a web browser window open. You must close all web browser windows to log out. View the source here. #technology
|
Comments:
2005-05-27 02:26:07
What's the adb_password for? I don't see how it could get a value other than null or admin_password. Couldn't you use sesssion_destroy in a logout button?
2005-05-27 08:01:26
I'm not really sure. I didn't write the script; I found it at PHPBuddy. If you try it, let me know how it comes out.
|