Welcome Guest, Not a member yet? Register   Sign In
csrf protection : error
#1

[eluser]krishnakumar2k[/eluser]
Am using ci 2 .I have enabled csrf protection in config file.

Code:
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'sitename';
$config['csrf_cookie_name'] = 'sitename';
$config['csrf_expire'] = 7200;

Am using codeigniter forms only.Some times i used to get the error "you are not authorized to perform this action" wile submitting forms or login.If i refresh and try angin then every thing works fine.Why is this happening ?.




Theme © iAndrew 2016 - Forum software by © MyBB