]> git.mxchange.org Git - friendica.git/commitdiff
Expire log-in cookie in 90 days rather than 7
authorSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 13:13:34 +0000 (15:13 +0200)
committerSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 13:16:12 +0000 (15:16 +0200)
include/auth.php

index 57e9d9bf61dc82a6f2adc21da27b92f9fb605ff8..636b5b153afa9d24ada00b119b561bacb23fdacb 100644 (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'])) {