开发者

Rename CodeIgniter's Cross-site Request Forgery Cookie

I've tried to rename the CodeIgniter CSRF cookie by editing the values in config/config.php:

$config['csrf_protection'] = TRUE;
$config['csrf_token_name']开发者_StackOverflow = 'mysite_csrf';
$config['csrf_cookie_name'] = 'mysite_csrf';
$config['csrf_expire'] = 7200;

But when I visit the site, the cookie still shows as: ci_csrf_token.

Why might this be occuring?


Which version of CI are you using? There was an error in 2.0.x

https://bitbucket.org/ellislab/codeigniter-reactor/issue/199

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜