mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
Merge pull request #2930 from Senky/ticket/13048
[ticket/13048] AJAX requests are being stored to session_page * Senky/ticket/13048: [ticket/13048] Only update session_page if request is not ajax
This commit is contained in:
commit
12398d65fd
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