Nette\Forms\Controls\CsrfProtection::getSession PHP Method

getSession() private method

private getSession ( ) : Session
return Nette\Http\Session
    private function getSession()
    {
        if (!$this->session) {
            $this->session = new Nette\Http\Session($this->getForm()->httpRequest, new Nette\Http\Response());
        }
        return $this->session;
    }