]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
set a cookie to make the session last 1h instead of 24m
authorValerie Pond <redacted>
Fri, 20 Jan 2023 22:03:02 +0000 (22:03 +0000)
committerValerie Pond <redacted>
Fri, 20 Jan 2023 22:03:02 +0000 (22:03 +0000)
plugins/sql_auth/sql_auth.php

index b0aa0038ca8da174cf7b2312ef611fd0c3119b6e..5822fda11376afbcfc8c9628bf2e2368fe928682 100644 (file)
@@ -65,6 +65,8 @@ class sql_auth
                                header("Location: ".BASE_URL."plugins/sql_auth/login.php");
                                die();
                        }
+                       // you'll be automatically logged out after one hour of inactivity
+                       session_set_cookie_params(3600);
                        session_start();
                }
        }