<?php session_start(); session_unset(); session_destroy(); setcookie(session_name() ,"",0,"/"); header("Location:index.php"); ?>