kopia lustrzana https://github.com/friendica/friendica
Expire log-in cookie in 90 days rather than 7
rodzic
3da0436f01
commit
e9f1a2e276
|
@ -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'])) {
|
||||
|
|
Ładowanie…
Reference in New Issue