<?php
session_start(); //Start the current session
session_destroy(); //Destroy it! So we are logged out now
header("location:index.php?msg=Successfully Logged out"); // Move back to index.php with a logout message
?>