From: Sandro Santilli Date: Fri, 21 Apr 2017 13:13:34 +0000 (+0200) Subject: Expire log-in cookie in 90 days rather than 7 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9f1a2e27670f1665260453b57b79a7959c12fc7;p=friendica.git Expire log-in cookie in 90 days rather than 7 --- 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'])) {