Skylar Ittner 11 months ago
parent
commit
f258379996
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      required.php

+ 2
- 2
required.php View File

@@ -24,13 +24,13 @@ header('X-Frame-Options: "DENY"');
24 24
 header('Referrer-Policy: "no-referrer, strict-origin-when-cross-origin"');
25 25
 $SECURE_NONCE = base64_encode(random_bytes(8));
26 26
 
27
-$session_length = 60 * 60 * 2; // 2 hours
27
+$session_length = 60 * 60 * 1; // 1 hour
28 28
 ini_set('session.gc_maxlifetime', $session_length);
29 29
 session_set_cookie_params($session_length, "/", null, false, false);
30 30
 
31 31
 session_start(); // stick some cookies in it
32 32
 // renew session cookie
33
-//setcookie(session_name(), session_id(), time() + $session_length);
33
+setcookie(session_name(), session_id(), time() + $session_length, "/", false, false);
34 34
 
35 35
 $captcha_server = (CAPTCHA_ENABLED === true ? preg_replace("/http(s)?:\/\//", "", CAPTCHA_SERVER) : "");
36 36
 if ($_SESSION['mobile'] === TRUE) {

Loading…
Cancel
Save