I want to overwrite public $csrfExpires = '+30 minutes';
in SecurityComponent.php. I want to make the token expire after 14 minutes.
So I have added the below code in my controller file.
if (isset($this->Security) && $this->action == 'myAction') {
$this->Security->csrfExpires = '+14 minutes';
}
But this does not seems to be working. Is there anything else I need to change?