<?php
session_cache_expire(15);
session_start();
$inactive = 900;
if(isset($_SESSION['start']) ) {
$session_life = time() - $_SESSION['start'];
if($session_life > $inactive){
header("Location: logout.php");
}
}
$_SESSION['start'] = time();
?>
whenever I try to log in the first attempt logs me out instantly, and on the 2nd attempt It allows me to log in.
any ideas as to what I am doing wrong? Thanks.

New Topic/Question
Reply




MultiQuote





|