CheckToken() not found.

When I run this conditional in DesktopController, the checkToken() function of the indexController not working, return false.


        if (!$this->session->has('id') AND !$this->session->has('docente')) {
            $this->response->redirect('ingreso/');
            $this->response->send();
        } 

Is it the same problem you had before? in this publication Not found CSRF

Is it the same problem you had before? in this publication Not found CSRF

Yes, but the same error came back to me and i could not solve it.

are you auto starting the session in your di? docs

are you auto starting the session in your di? docs

Yes.

$di->setShared('session', function () { $session = new Session();

    $session->start();

    return $session;

});