[*] BO: Add an option to autologout to the backoffice after 15 minutes

This commit is contained in:
Rémi Gaillard
2013-10-10 12:20:10 +02:00
parent 6c35b20b02
commit 278dc32482
4 changed files with 16 additions and 7 deletions
@@ -180,6 +180,10 @@ class AdminLoginControllerCore extends AdminController
$cookie->profile = $this->context->employee->id_profile;
$cookie->passwd = $this->context->employee->passwd;
$cookie->remote_addr = $this->context->employee->remote_addr;
if (!Tools::getValue('stay_logged_in'))
$cookie->last_activity = time();
$cookie->write();
// If there is a valid controller name submitted, redirect to it