/** * Create HTTP response * * Should be called after a login attempt has been determined * * @return void BUT writes to standard output and cookies! */ public function response() { $message = ''; if (self::$LoginModel->userLoggedIn()) { $message = $this->getMessage(); $response = $this->generateLogoutButtonHTML($message); } else { $message = $this->getMessage(); $response = $this->generateLoginFormHTML($message); } // $response .= $this->generateLogoutButtonHTML($message); return $response; }