• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSRF and form_validation question

#1
[eluser]Keinstah[/eluser]
do i have to use form_validation->run just to validate the csrf?

#2
[eluser]DaveLittle[/eluser]
I'm pretty sure that Codeigniter automatically validates the CSRF (although I could be wrong)

If you use the form helper and use: form_open() it will automatically give you the csrf in a hidden input, on my website if the CSRF is wrong, or not existance, Ajax throws back error 500

#3
[eluser]Keinstah[/eluser]
yeah im getting error 500 in chrome but in firefox its good.

i even tried echoing $_POST and there's csrf post.

#4
[eluser]Unknown[/eluser]
I’m dam sure that Codeigniter automatically validates the CSRF..

#5
[eluser]Keinstah[/eluser]
im not sure if its only my browser's cookie fcked up, because i tried it on other pc it works fine.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.