Location: PHPKode > projects > DaloRADIUS > daloradius-0.9-8/logout.php
<?php
session_start();

// if the user is logged in, unset the session
if (isset($_SESSION['daloradius_logged_in'])) {
   unset($_SESSION['daloradius_logged_in']);
}

// completely destory the session and all it's variables
session_destroy();

// now that the user is logged out,
// go to login page
header('Location: login.php');
?>
Return current item: DaloRADIUS