csrf token is valid just in first submit using ajax |
Hi, i want to submit my form using jquery ajax, it is ok but just for first time i click submit, here is my code ,
my view that contains js : Code: <?php and this is my controller : Code: public function ajaxreg() i have enabled csrf protection in config.php when csrf is disabled in config.php, every thing works fine, but after enabling that, my code works first time i clicking, and after that it doesn't works until i refresh page , how i can use ajax+csrf to submit forms in CI#? thanks ![]() |
Messages In This Thread |
csrf token is valid just in first submit using ajax - by nasser.man - 04-06-2015, 11:53 AM
RE: csrf token is valid just in first submit using ajax - by silentium - 04-06-2015, 03:50 PM
RE: csrf token is valid just in first submit using ajax - by nasser.man - 04-06-2015, 09:30 PM
RE: csrf token is valid just in first submit using ajax - by agimovel - 11-27-2017, 12:35 PM
RE: csrf token is valid just in first submit using ajax - by mwhitney - 04-08-2015, 12:15 PM
RE: csrf token is valid just in first submit using ajax - by iamthestreets - 12-24-2015, 01:17 PM
RE: csrf token is valid just in first submit using ajax - by mwhitney - 12-29-2015, 09:59 AM
|