Logout session in PHP Anu 12 years ago This is the code to logout from the website: <?php session_start(); session_destroy(); header("Location: index.php"); ?>