validateSecurity(); } private function validateSecurity() { if ($this->Session["wsat_password"] !== $this->getService()->getPassword()) { if (!$this->getPage() instanceof TWsatLogin) { $url = $this->Service->constructUrl('TWsatLogin'); $this->Response->redirect($url); } } } public function logout() { $this->Session["wsat_password"] = ""; $url = $this->Service->constructUrl('TWsatLogin'); $this->Response->redirect($url); } }