about error 'CSRF validation failed' for developers

Hello everyone. This is a continuation of the discussion http://forum.phalcon.io/discussion/1091/csrf-validation-failed Dear developers, explain the reason for the error 'CSRF validation failed' I only make one change to the project vokuro.


public function beforeExecuteRoute(Dispatcher $dispatcher)
        //Get the current identity
        $identity = $this->auth->getIdentity();
        if (!$identity) {
            if ($controllerName != 'session') {
                    'controller' => 'session',
                    'action' => 'login'
                return false;

The error occurs on the login page. My goal is to protect the entire application from unauthorized users


Hmm .... Everything works fine on Windows. What's wrong with my Linux and php???