<?php
// Start or resume the session
session_start();

// Removes data from the session array variable itself
$_SESSION = array();

// To completely end the session and delete the session cookie
session_destroy();

// Redirecting to the login page
header("Location: index.php");
exit;
?>
