<?php
if(isset($_POST['username'])) $username=$_POST['username'];
if(!isset($username)) { $username='';} else{
setcookie("username",$username,time()-60000);
setcookie("access",1,time()-60000);
echo 'Logout OK!<br>';
}
echo "<META HTTP-EQUIV=\"refresh\" content=\"1;URL=index.php\">";
?>