/**
  * Following the registration process has been completed, this function will create a new session tied to that ID.
  *
  * @param $userid
  */
 public function CreateSession($sessionid, $userid, $logintime, $ip)
 {
     $this->database->InsertSession($sessionid, $userid, $logintime, time(), $ip);
 }