Welcome Guest, Not a member yet? Register   Sign In
csrf regenerate set to false?
#1

(This post was last modified: 10-17-2016, 06:40 PM by wolfgang1983.)

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(); 
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB