mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 02:31:45 -05:00
keep session alive during auth checks
This commit is contained in:
+7
-1
@@ -1,11 +1,17 @@
|
||||
<?php
|
||||
session_start(['read_and_close' => true]);
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), true, true);
|
||||
session_start();
|
||||
|
||||
// authorized
|
||||
if (isset($_SESSION["unraid_login"])) {
|
||||
if (time() - $_SESSION['unraid_login'] > 300) {
|
||||
$_SESSION['unraid_login'] = time();
|
||||
}
|
||||
session_write_close();
|
||||
http_response_code(200);
|
||||
exit;
|
||||
}
|
||||
session_write_close();
|
||||
|
||||
$arrWhitelist = [
|
||||
'/webGui/styles/clear-sans-bold-italic.eot',
|
||||
|
||||
Reference in New Issue
Block a user