<?php
session_start();

// Remove the user data from the session
unset($_SESSION['emailadd']);
unset($_SESSION['f_name']);
unset($_SESSION['l_name']);
unset($_SESSION['nokp']);

// Destroy the session
session_destroy();

// Redirect the user to the login page
header('Location: index.php');
exit;
?>
