Kaynağa Gözat

Change cookie lifetime to 1 month.

See https://github.com/marienfressinaud/FreshRSS/issues/465
Marien Fressinaud 11 yıl önce
ebeveyn
işleme
93a77f84d4
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/Controllers/indexController.php

+ 2 - 2
app/Controllers/indexController.php

@@ -314,8 +314,8 @@ class FreshRSS_index_Controller extends Minz_ActionController {
 						Minz_Session::_param('currentUser', $username);
 						Minz_Session::_param('currentUser', $username);
 						Minz_Session::_param('passwordHash', $s);
 						Minz_Session::_param('passwordHash', $s);
 						if ($keep_logged_in) {
 						if ($keep_logged_in) {
-							// New cookie with a lifetime of 1 year!
-							Minz_Session::keepCookie(31536000);
+							// New cookie with a lifetime of 1 month.
+							Minz_Session::keepCookie(2592000);
 							Minz_Session::regenerateID();
 							Minz_Session::regenerateID();
 						}
 						}
 					} else {
 					} else {