Login and Auth
This commit is contained in:
7
assets/php/session_check.php
Normal file
7
assets/php/session_check.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: /login.html");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user