Password Protect

Scott worked with encoding a master password that only allows access to certain pages. This information is on his [Scott Page]. Look under Techniques. This implementation worked great for me, though I had to make a small change to the logout function. I added the following code between his two lines of code and it works.

setcookie('LexCLabLoggedIn', FALSE);

See the [cref password-tutorial] Post for instructions for implementing this.

Later, we’ll be looking at a database implementation that allows users to create logins. Note: I found an interesting article on creating a [Secure PHP Login] Script at www.devshed.com. I found an easier [PHP Login Script] implementation that isn’t as secure at www.phpeasystep.com. You can choose what you want to do based on how secure your users’ data needs to be.

Author: Steph

Share This Post On

Pin It on Pinterest

Share This