<? session_start();
if ($act == "reset" && $value =="") {
if (!isset($_COOKIE['user'])) {
header ("location:index.php");
} else{
"else part";
This code works well on my localhost bt when i run it on the server, it always redirects me to index.php, even when the cookie is set.