Welcome Guest, Not a member yet? Register   Sign In
[Solved] CSRF CI3 Question
#1

(This post was last modified: 06-08-2015, 07:07 AM by wolfgang1983.)

I have a question about CSRF on Codeigniter 3

When I submit any of my forms and get a error on form if I refresh page or reload page it then throws codeigniter error

Code:
The action you have requested is not allowed.

Why does that happen only when reload or refresh.

PHP Code:
$config['cookie_prefix']    '';

$config['cookie_domain']    '';
$config['cookie_path']        '/';
$config['cookie_secure']    FALSE;
$config['cookie_httponly'    FALSE;


$config['global_xss_filtering'] = TRUE;

$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'] = TRUE;
$config['csrf_exclude_uris'] = array(); 

Any Suggestions?
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
[Solved] CSRF CI3 Question - by wolfgang1983 - 06-07-2015, 05:41 AM
RE: CSRF CI3 Question - by Avenirer - 06-08-2015, 01:11 AM
RE: CSRF CI3 Question - by spjonez - 06-08-2015, 06:08 AM
RE: CSRF CI3 Question - by wolfgang1983 - 06-08-2015, 07:06 AM
RE: CSRF CI3 Question - by Avenirer - 06-08-2015, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB