Hello!
I have problem with csrf token.
In my form i have:
<input type='hidden' name='<?php echo $this->security->getTokenKey(); ?>' value='<?php echo $this->security->getToken(); ?>'/>
in controller, i check token with
$this->security->checkToken();
and this return false only.
I have:
$di->setShared('session', function () { $session = new SessionAdapter(); $session->start();
return $session;
});
Edit: Hi, again. The problem exists when I'm redirected to the form page, and if I open it directly all work.
I open user/user, but i not logged and redirect me to login page->csrf no work; I open user/login direct and csrf is work.
Where is the problem?