Home } Password Protection } Cookie



You can use a basic cookie script to keep visitors (that don't have the cookie on their system) from viewing certain parts of your site (kind of.... There are always ways around it). The cookie is placed when the password provided is correct. Then, when they are forwarded to the password protected page, the cookie allows them to stay. Those without the cookie are sent back.
The passwords are actually not "set" in the script. Instead,
it relies on a basic method of password verification. If:

password1 + password2 = password3

then they can enter the site. For example:

java, script, javascript    and    test, ing, testing

work, but this set does not:

let, me, in

("let" + "me" -- which equals "letme" -- does not equal "in").

So, to actually use this script on your site, we recommend you
give each user a differnet password set that fulfills the pattern.

 
Free Script And Source Code For Webmaster ,ASP,HTML,VB,Java, Java Script, Dhtml,xml,ajax,programming: Password Protection: Cookie (Login Page)

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!

    

Free Script And Source Code For Webmaster ,ASP,HTML,VB,Java, Java Script, Dhtml,xml,ajax,programming: Password Protection: Cookie (Protected)

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!