<?php
session_start();
// clear and destroy session
$_SESSION = array();
session_destroy();
header("Location: index.php");
?>