Location: PHPKode > scripts > PHP-AGTC membership system > admin/includes/secure_page.php
<?php
  // log out if no session
  if (!isset($_SESSION['username'])) {
	if (isset($_SESSION)) {
	  while (list ($key, $val) = each ($_SESSION)) {
		session_unregister($key);
	  }
	  session_destroy();
	}
	header("Location: ./login.php");
	exit();
		
  }
?>
Return current item: PHP-AGTC membership system