[ticket/13048] Only update session_page if request is not ajax

PHPBB3-13048
This commit is contained in:
Jakub Senko 2014-09-07 10:15:51 +02:00
parent 297ab5c526
commit b218f3ad43

View file

@ -441,8 +441,8 @@ class session
if (!$session_expired)
{
// Only update session DB a minute or so after last update or if page changes
if ($this->time_now - $this->data['session_time'] > 60 || ($this->update_session_page && $this->data['session_page'] != $this->page['page']))
// Only update session DB a minute or so after last update or if page changes and is not ajax request
if (($this->time_now - $this->data['session_time'] > 60 || ($this->update_session_page && $this->data['session_page'] != $this->page['page'])) && !$request->is_ajax())
{
$sql_ary = array('session_time' => $this->time_now);