Dispatcher::checkSecurityToken PHP Method

checkSecurityToken() protected method

See also: getSecurityToken()
protected checkSecurityToken ( )
    protected function checkSecurityToken()
    {
        $securityToken = $this->getSecurityToken();
        if (!$securityToken->check($this->request->postVar(self::SECURITY_TOKEN_NAME))) {
            $this->httpError(403, 'Invalid security token, try reloading the page.');
        }
    }