How to prevent error page when CSRF token has expired - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to prevent error page when CSRF token has expired (/showthread.php?tid=47838) |
How to prevent error page when CSRF token has expired - El Forum - 12-24-2011 [eluser]luismartin[/eluser] If the CSRF token expires, and I still want to use the form, I will get a white error page with this message: Quote:An Error Was Encountered The CSRF security cookie is working. But I would like to redirect the user to the login page instead of displaying the error. What should I do? and where? |