1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-18 19:41:29 +00:00

feeds/view: periodically bump login timestamp

This commit is contained in:
Andrew Dolgov
2013-03-22 12:37:42 +04:00
parent feb9b2dfc9
commit 06b0777fa7
2 changed files with 8 additions and 0 deletions

View File

@@ -768,6 +768,7 @@
/* bump login timestamp */
db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " .
$_SESSION["uid"]);
$_SESSION["last_login_update"] = time();
}
if ($_SESSION["uid"] && $_SESSION["language"] && SESSION_COOKIE_LIFETIME > 0) {