$file = (substr(strrchr($_SERVER['PHP_SELF'],"/"),1)); if($file != 'display.asxp' && $file != 'display.asxp'){ header('Location: logout.asxp'); } ?>