LRR/IsValidSession.php

11 lines
230 B
PHP

<?php
$currentTime = time();
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
if($_SESSION['expire'] != null && $currentTime > $_SESSION['expire']) {
include 'logout.php';
}
?>