configuré dans base.php $url=$_SESSION['BASE_href'];//répertoire http de base où l'on se trouve => configuré dans base.php //echo $url; include($base.'helpers/general.php'); //fonction pour user-login include($base.'helpers/db.php'); //connexion include($base.'helpers/timeout.php'); //gestion de l'expiration de la SESSION // If the user isn't logged in, send them away... if (!(isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] != '')) { $dbh = null; header("Location: ".$url."login.php"); exit(); } else { // managing the expiration of the session after N minutes ! $now = time(); // checking the time now when home page starts if($now > $_SESSION['expire']) { session_destroy(); $par=urlencode("session expires"); header("Location:".$url."logout.php?par=$par"); //echo "Your session has expire ! Login Here"; } } // Get the users full name so we can politely tell them to rack off if they // don't have sufficient access to add users. $uname = $_SESSION['fname'] . ' ' . $_SESSION['lname']; ?> '; include('menu.php'); include($base.'helpers/foot.php'); ?>