protected function checkSessionToken()
{
if (!isset($this->parameters['session_token']) || empty($this->parameters['session_token'])) {
return $this->messageSessionTokenMissing();
}
$current = session_id();
if ($this->parameters['session_token'] != $current && !empty($current) || !isset($_SESSION['glpiID'])) {
return $this->messageSessionError();
}
}