csrf error 500 with cookies disabled in browser - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: csrf error 500 with cookies disabled in browser (/showthread.php?tid=64315) |
csrf error 500 with cookies disabled in browser - zoé - 02-07-2016 Hi, When cookies are disabled in browser, doing a controller post with csrf return a 500 error, which seems to be logical. But i can't find where and when in the flow i can catch that cookies are disabled. Putting log debug in front off controller indicates that nothing entered in controller. Using CI 2.26. Sorry for bad english i'm french RE: csrf error 500 with cookies disabled in browser - zoé - 02-07-2016 found a dirty (?) solution, putting this in config.php instead of in a hook : PHP Code: if(!empty($_POST)) { |