mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Broke up the check_login.php require into several files seperated by function and then required them in the check_login
This commit is contained in:
11
includes/session_init.php
Normal file
11
includes/session_init.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (!isset($_SESSION)) {
|
||||
// HTTP Only cookies
|
||||
ini_set("session.cookie_httponly", true);
|
||||
if ($config_https_only) {
|
||||
// Tell client to only send cookie(s) over HTTPS
|
||||
ini_set("session.cookie_secure", true);
|
||||
}
|
||||
session_start();
|
||||
}
|
||||
Reference in New Issue
Block a user