1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-17 04:51:35 +02:00

Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/13048] Only update session_page if request is not ajax
This commit is contained in:
Joas Schilling 2014-09-07 12:50:55 +02:00
commit 54ccea9312

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);