Location: PHPKode > scripts > alarisMenu > alarismenu/alarisAdmin/logout.php
<?php include ("alaris_main_fns.php");

session_start();
check_valid_user();
$old_user = $valid_user; // this is to see if the user is even logged in, if so...
$result = session_unregister("valid_user");
session_unregister("valid_user");
session_unregister("rowid");
session_unregister("fname");
session_unregister("lname");
session_destroy();

if (!empty($old_user)) {
	if ($result) {
		header("Location: login.php?login=loggedout");
		exit;
		}
	else {
?>
<html>
<head>
 <title>Logout</title>
</head>
<body>
You were not able to logout correctly.<br>
</body>
<html>
<?
	 }
}
?>

Return current item: alarisMenu