From 2f9e87811a21f37f1fa6b5da773ae007ae6e4648 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 30 Nov 2017 15:02:34 +0100 Subject: [statistics] Reset session name on login to vmchooser --- modules-available/statistics/api.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/statistics') 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; -- cgit v1.2.3-55-g7522