1 2 3 4 5 6 7 8 9 10 11
<?php session_start(); //remove all session variables session_unset(); //destroy the session session_destroy(); header('Location: index.php'); ?>