Update session timestamp on every action #799
This commit is contained in:
parent
5f8133f02c
commit
0800fc1066
1 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,8 @@ class ApiController extends BaseApiController
|
|||
|
||||
protected function updateSessionTimestamp()
|
||||
{
|
||||
error_log('Updating session timestamp');
|
||||
error_log('Session ID: '. $this->session->getID());
|
||||
$this->session->setDateLatestActivity(new DateTime());
|
||||
$this->em->flush();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue