/**
  * Creates a user session record and returns its values.
  * However, as the FE user cookie is normally not set, this has to be done
  * before the parent class is doing the rest.
  *
  * @param array $tempuser User data array
  * @return array The session data for the newly created session.
  */
 public function createUserSession($tempuser)
 {
     // At this point we do not know if we need to set a session or a "permanant" cookie
     // So we force the cookie to be set after authentication took place, which will
     // then call setSessionCookie(), which will set a cookie with correct settings.
     $this->dontSetCookie = FALSE;
     return parent::createUserSession($tempuser);
 }
 /**
  * Creates a user session record and returns its values.
  * However, as the FE user cookie is normally not set, this has to be done
  * before the parent class is doing the rest.
  *
  * @param array $tempuser User data array
  * @return array The session data for the newly created session.
  */
 public function createUserSession($tempuser)
 {
     $this->setSessionCookie();
     return parent::createUserSession($tempuser);
 }