From e9f1a2e27670f1665260453b57b79a7959c12fc7 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 21 Apr 2017 15:13:34 +0200 Subject: [PATCH] Expire log-in cookie in 90 days rather than 7 --- include/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/auth.php b/include/auth.php index 57e9d9bf61..636b5b153a 100644 --- a/include/auth.php +++ b/include/auth.php @@ -19,7 +19,8 @@ if (isset($_COOKIE["Friendica"])) { } // Renew the cookie - new_cookie(604800, $r[0]); + // Expires after 90 days - TODO: use a configuration variable + new_cookie(90*24*60*60, $r[0]); // Do the authentification if not done by now if (!isset($_SESSION) OR !isset($_SESSION['authenticated'])) {