increased cookie duration to a month. otherwise it is annoying keep having to relogin

This commit is contained in:
Frederico Falcao 2025-05-30 11:43:02 +01:00
parent f2a6525224
commit 7990cfd37d

View File

@ -1,4 +1,9 @@
<?php
// Set session cookie lifetime to 30 days
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 30);
// Keep server-side session data for 30 days
ini_set('session.gc_maxlifetime', 60 * 60 * 24 * 30);
session_start();
if (!isset($_SESSION["authenticated"]) || $_SESSION["authenticated"] !== true ) {