I am trying to refresh page automatically when session times out. I have look other post but I think we are not same problem.
I have the session out code:
$inactive = 10;
if( !isset($_SESSION['timeout']) )
$_SESSION['timeout'] = time() + $inactive;
$session_life = time() - $_SESSION['timeout'];
if($session_life > $inactive)
{ session_destroy(); header("Location: http://localhost/fmsgroup/fmsystempanamed/logout/endsession.php"); }
$_SESSION['timeout']=time();
what will I add so that when it refresh it will go to the header.