protected function onUnauthorized() { parent::onUnauthorized(); header("Location: authenticate.php"); }