mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[ticket/13048] Only update session_page if request is not ajax
PHPBB3-13048
This commit is contained in:
parent
297ab5c526
commit
b218f3ad43
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue