I enabled the csrf_protection option in codeigniter\'s config file, and used form_open() function to create my forms. But when I submit the form, this error occurs:
In config/config.php I have
$config['csrf_token_name'] = 'my.token.name';
But when I use var_dump for $_POST I see:
["my_token_name"]=> string(32) "f5d78f8c8bb1800d10af59df8c302515"
CI change my csrf_token_name (sic!)
Solution: I changed
$config['csrf_token_name'] = 'my.token.name';
to
$config['csrf_token_name'] = 'my_token_name';
Now it works.