<?php if(!session_id()) { session_start(); } session_unset(); session_destroy(); header("Location: login.php"); ?>