Expire log-in cookie in 90 days rather than 7

pull/3373/head
Sandro Santilli 2017-04-21 15:13:34 +02:00
rodzic 3da0436f01
commit e9f1a2e276
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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