private static function GetKey($SessionID)
 {
     $Statement = Session::$DBConnection->prepare('SELECT session_key FROM sessions WHERE id = :sessionid LIMIT 1');
     $Statement->bindParam(':sessionid', $SessionID);
     $Statement->execute();
     $Result = $Statement->fetch(PDO::FETCH_ASSOC);
     if (!isset($_SESSION['loggedin'])) {
         Session::GenerateSessionData();
     }
     if ($Result['session_key'] != '') {
         return $Result['session_key'];
     } else {
         return hash('sha512', uniqid(mt_rand(1, mt_getrandmax()), true));
     }
 }