Click to See Complete Forum and Search --> : just realized...


neenach2002
08-02-2003, 02:41 PM
I would like the code that allows a person to view a site if they have input a password...

if they haven't input the correct password, a cookie will be placed on their computer, and they will be redirected to another site and won't be able to try again for 1 hour...

if they put in the correct password, another cookie will be written to the persons computer, and they will be able to access the rest of the site, after logging on, I want the user to have to put in the password again after 60 minutes....is there a way to do this?

Zero-x252
08-02-2003, 02:57 PM
yes there is i only know how to do the password part..
function checkpass(){
var the_pass = 'password here'
var the_answer = prompt('whats the word??,'')
if (the_pass != the_answer){
write cookie writting code stuff here
}
else{
write cookie code stuff here}
<body onLoad="command for checking cookie stuff()">

neenach2002
08-02-2003, 03:04 PM
no...I ALREADY have a php password checker, I only need to be able to right the cookie if password is correct or incorret...if possible

Bootsman123
08-02-2003, 04:13 PM
Why don't you use the php version:
http://www.php.net/setcookie

neenach2002
08-02-2003, 04:23 PM
pst full code plz...

Bootsman123
08-02-2003, 05:08 PM
What's not clear about the examples on that page.