increased cookie duration to a month. otherwise it is annoying keep having to relogin
This commit is contained in:
parent
f2a6525224
commit
7990cfd37d
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?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();
|
session_start();
|
||||||
|
|
||||||
if (!isset($_SESSION["authenticated"]) || $_SESSION["authenticated"] !== true ) {
|
if (!isset($_SESSION["authenticated"]) || $_SESSION["authenticated"] !== true ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user