Initial Commit

This commit is contained in:
Vinlio Andriarles
2026-06-02 13:15:29 +07:00
commit 3ebceba0b8
31 changed files with 2058 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
session_start();
// timeout session (30 menit)
$timeout = 1800;
if (isset($_SESSION['last_activity']) && (time() - $_SESSION['last_activity'] > $timeout)) {
session_unset();
session_destroy();
header("Location: auth/login.php?error=3");
exit;
}
$_SESSION['last_activity'] = time();
// cek login
if (!isset($_SESSION['id'])) {
header("Location: auth/login.php?error=3");
exit;
}
?>