i use this piece of code to check if the page is active , i put it in every page in my project , in a case it has failed , why ?
Code: Select all
session_start();
if( !$_SESSION['UserToProcess'] )
{header("Location: logout.php");}
Code: Select all
session_start();
if( isset($_SESSION['UserToProcess']) )
{header("Location: logout.php");}