diff options
author | Simon Rettberg | 2017-11-30 15:02:34 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-30 15:02:34 +0100 |
commit | 2f9e87811a21f37f1fa6b5da773ae007ae6e4648 (patch) | |
tree | 17ad8e86bfaa364f7b44ef952e74f983ef7becda /modules-available/statistics | |
parent | [statistics] Update translations (diff) | |
download | slx-admin-2f9e87811a21f37f1fa6b5da773ae007ae6e4648.tar.gz slx-admin-2f9e87811a21f37f1fa6b5da773ae007ae6e4648.tar.xz slx-admin-2f9e87811a21f37f1fa6b5da773ae007ae6e4648.zip |
[statistics] Reset session name on login to vmchooser
Diffstat (limited to 'modules-available/statistics')
-rw-r--r-- | modules-available/statistics/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php index d75f4af8..7b5678de 100644 --- a/modules-available/statistics/api.inc.php +++ b/modules-available/statistics/api.inc.php @@ -211,7 +211,7 @@ if ($type{0} === '~') { $params['user'] = Request::post('user', null, 'string'); $res = Database::exec('UPDATE machine SET lastseen = UNIX_TIMESTAMP(),' . $strUpdateBoottime - . " logintime = UNIX_TIMESTAMP(), currentuser = :user, state = 'OCCUPIED' " + . " logintime = UNIX_TIMESTAMP(), currentuser = :user, currentsession = NULL, state = 'OCCUPIED' " . " WHERE machineuuid = :uuid AND lastseen = :oldlastseen AND state = :oldstate", $params); } else { $res = 0; |