Welcome Guest, Not a member yet? Register   Sign In
csrf token is valid just in first submit using ajax
#7

(04-06-2015, 03:50 PM)silentium Wrote: You can turn regeneration of in the config file by setting $config['csrf_regenerate'] = FALSE;

By default, CodeIgniter generates a new CSRF token on each page request. When doing an AJAX call, the AJAX request is regenerating a new token creating the issue you have.

You should never do that, makes your application less secure.
Reply


Messages In This Thread
RE: csrf token is valid just in first submit using ajax - by agimovel - 11-27-2017, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB