Skylar Ittner 1 year ago
parent
commit
6b7857ceba
5 changed files with 12 additions and 6 deletions
  1. 1
    1
      index.php
  2. 5
    0
      lib/login.php
  3. 3
    2
      required.php
  4. 1
    1
      static/css/fa-svg-with-js.css
  5. 2
    2
      static/js/fontawesome-all.min.js

+ 1
- 1
index.php View File

@@ -104,7 +104,7 @@ header("Link: <static/js/bootstrap.min.js>; rel=preload; as=script", false);
104 104
     <body>
105 105
         <div class="row justify-content-center">
106 106
             <div class="col-auto">
107
-                <img class="banner-image" src="static/img/logo.png" />
107
+                <img class="banner-image" src="static/img/logo.svg" />
108 108
             </div>
109 109
         </div>
110 110
         <div class="row justify-content-center">

+ 5
- 0
lib/login.php View File

@@ -247,6 +247,11 @@ function doLoginUser($username) {
247 247
     
248 248
     if ($resp['status'] == "OK") {
249 249
         $userinfo = $resp['data'];
250
+        session_regenerate_id(true);
251
+        $newSession = session_id();
252
+        session_write_close();
253
+        session_id($newSession);
254
+        session_start();
250 255
         $_SESSION['username'] = $username;
251 256
         $_SESSION['uid'] = $userinfo['uid'];
252 257
         $_SESSION['email'] = $userinfo['email'];

+ 3
- 2
required.php View File

@@ -24,12 +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; // 1 hour
27
+$session_length = 60 * 60 * 2; // 2 hours
28
+ini_set('session.gc_maxlifetime', $session_length);
28 29
 session_set_cookie_params($session_length, "/", null, false, false);
29 30
 
30 31
 session_start(); // stick some cookies in it
31 32
 // renew session cookie
32
-setcookie(session_name(), session_id(), time() + $session_length);
33
+//setcookie(session_name(), session_id(), time() + $session_length);
33 34
 
34 35
 $captcha_server = (CAPTCHA_ENABLED === true ? preg_replace("/http(s)?:\/\//", "", CAPTCHA_SERVER) : "");
35 36
 if ($_SESSION['mobile'] === TRUE) {

+ 1
- 1
static/css/fa-svg-with-js.css View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * Font Awesome Free 5.0.12 by @fontawesome - https://fontawesome.com
2
+ * Font Awesome Free 5.0.13 by @fontawesome - https://fontawesome.com
3 3
  * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4 4
  */
5 5
 svg:not(:root).svg-inline--fa {

+ 2
- 2
static/js/fontawesome-all.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save