session_start(); $eskiler=$_SESSION['userid']; unset($_SESSION['userid']); session_destroy(); header("location:index.php");