Location: PHPKode > projects > PHP MySQL Address Book > addressbook/sesionchk4sub.php
<?php
session_start();

// is the one accessing this page logged in or not?
if (!isset($_SESSION['db_is_logged_in']) || $_SESSION['db_is_logged_in'] !== true) {
	// not logged in, move to login page
	header('Location: ../index.php');
	exit;
}
?>
Return current item: PHP MySQL Address Book