if($_COOKIE["pass"]!=='1' & $_COOKIE["name"]!=='K'){
if($_POST['pass'] and $_POST['name']){
setcookie("pass",$_POST['pass'],time()+40);
setcookie("name",$_POST['name'],time()+40);
ini_set(session.cookie_lifetime, 60*60*24);
header("Location: index.php");
}
if($_COOKIE["pass"]=='1' AND $_COOKIE["name"]=='K'){
if($_POST['pass'] and $_POST['name']){
setcookie("pass",$_POST['pass'],time()+40);
setcookie("name",$_POST['name'],time()+40);
ini_set(session.cookie_lifetime, 60*60*24);
header("Location: index.php");
}