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

(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.

it works , many thanks,
ressan.ir
CI is nice Heart
Reply


Messages In This Thread
RE: csrf token is valid just in first submit using ajax - by nasser.man - 04-06-2015, 09:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB