mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 04:42:04 +02:00
[ticket/15583] Update session time in AJAX request only once a minute
PHPBB3-15583
This commit is contained in:
parent
85eceeccbe
commit
8283f2393a
@ -1618,7 +1618,7 @@ class session
|
||||
$page_changed = $this->update_session_page && $this->data['session_page'] != $this->page['page'] && !$request->is_ajax();
|
||||
|
||||
// Only update session DB a minute or so after last update or if page changes
|
||||
if ($this->time_now - ((isset($this->data['session_time'])) ? $this->data['session_time'] : 0) > 60 || $page_changed)
|
||||
if ($this->time_now - (isset($this->data['session_time']) ? $this->data['session_time'] : 0) > 60 || $page_changed)
|
||||
{
|
||||
$sql_ary = array('session_time' => $this->time_now);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user