Expire log-in cookie in 90 days rather than 7

This commit is contained in:
Sandro Santilli 2017-04-21 15:13:34 +02:00
parent 3da0436f01
commit e9f1a2e276

View file

@ -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'])) {