Extend session to 90 days (#138)
This commit is contained in:
parent
e42ad8642e
commit
15a00998da
|
@ -8,6 +8,10 @@ use Wruczek\TSWebsite\Utils\Utils;
|
||||||
|
|
||||||
session_name("tswebsite_sessionid");
|
session_name("tswebsite_sessionid");
|
||||||
|
|
||||||
|
// make session last 90 days
|
||||||
|
ini_set("session.gc_maxlifetime", 60 * 60 * 24 * 90);
|
||||||
|
ini_set("session.cookie_lifetime", 60 * 60 * 24 * 90);
|
||||||
|
|
||||||
if (session_status() === PHP_SESSION_NONE) {
|
if (session_status() === PHP_SESSION_NONE) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue