private function setNewTemporaryPassword() { //set New Cookie $tempCred = $this->model->getTempCredentials(); if ($tempCred) { setcookie(self::$cookieName, $this->getUserName(), $tempCred->getExpire()); setcookie(self::$CookiePassword, $tempCred->getPassword(), $tempCred->getExpire()); } }