summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-30 15:02:34 +0100
committerSimon Rettberg2017-11-30 15:02:34 +0100
commit2f9e87811a21f37f1fa6b5da773ae007ae6e4648 (patch)
tree17ad8e86bfaa364f7b44ef952e74f983ef7becda /modules-available/statistics
parent[statistics] Update translations (diff)
downloadslx-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.php2
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;