mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-17 13:00:20 +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:
commit
54ccea9312
@ -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…
x
Reference in New Issue
Block a user