Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

csrf regenerate set to false?

$
0
0
Hello,

If I have this csrf_regenerate set to TRUE. And submit form and has error then reload form.

I get error 


Code:
The action you have requested is not allowed.



How ever if i have this csrf_regenerate set to FALSE.

Do not get any errors.

Is it safe to set have this csrf_regenerate set to false?

PHP Code:
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array(); 

Viewing all articles
Browse latest Browse all 14348

Trending Articles