CodeIgniter Forums

Full Version: How to prevent error page when CSRF token has expired
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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 action you have requested is not allowed.

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?