Anu December 22, 2014 Others Logout session in PHP This is the code to logout from the website: <?php session_start(); session_destroy(); header("Location: index.php"); ?>