Thank you so much for the great script
A question though - Once a user logs in, they are permanently logged in, it seems. I would like the users to be logged off once they navigate away from the protected page - I would like the script to require the user to provide a username and password every time they try to access the page.
which part of the following script i have to take out? because i tried once to take setcookie("verify", md5($pass), $timeout, '/');
did not quiet work!
www.edwinsproductions.com/melina&edwin.php
i kept the password as the defalt one this is only for testing perposes
many thanks
Mike
showLoginPasswordProtect("Incorrect password.");
}
else {
// set cookie if password was validated
setcookie("verify", md5($pass), $timeout, '/');