]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
feeds/view: periodically bump login timestamp
[tt-rss.git] / include / functions.php
index 355fcd32ba7505f5b193e9a32634013f85e092ca..8804d71d13789738c297fa4ca4fe7ceb6ca8f0a6 100644 (file)
                                /* 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) {