Folder reorganize 1
This commit is contained in:
19
session.php
Normal file
19
session.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php // phpcs:ignoreFile
|
||||
|
||||
ini_set('session.gc_maxlifetime', 3600);
|
||||
|
||||
session_set_cookie_params([
|
||||
'lifetime' => 3600,
|
||||
'path' => '/',
|
||||
'domain' => '',
|
||||
'secure' => false,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Lax',
|
||||
]);
|
||||
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['SESS_MEMBER_LEVEL'])) {
|
||||
header('Location: index.php?error=pleaselogin');
|
||||
exit;
|
||||
}
|
||||
Reference in New Issue
Block a user