<? if(!isset($user)){header('location:/');} setcookie('login', '', time() - 3600, '/'); setcookie('pass', '', time() - 3600, '/'); session_destroy(); unset($user); header('location:/'); ?>