We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

CSRF - Session

Hi, I am trying to learn phalcon, I keep token and tokenkey in a session. Everything is fine on localhost. I upload my project on remote server but security->checkToken() is always return false. Then I use var_dump($this->security->getSessionToken()) . After login page there is a token session that s fine but after post anything it returns as null. Could you help me please?

Once use $this->security->checkToken() should i get new token?