| Code: |
|
// if login is ok then we add a cookie $pwd = stripslashes($pwd); $hour = time() + 600; setcookie("minty_frihost_net", $pwd, $hour); if ($_COOKIE['minty_frihost_net']){ sleep(5); header("Location: /index2.php"); }else{ echo "No cookie set"; } |
Is this setup properly
| Code: |
| if ($_COOKIE['minty_frihost_net']) |
to determine whether the cookie is really being set. I know I have my machine and browser setup to allow it, for I have other sites that leave cookies...Any and all ideas are greatly appreciated.
BTW, the cookie is set after authentication passes and is used to keep the user from having to log back in when they goto different pages within my site. I believe this is called a "session"?
Thanks again,
-minty
