The contact form on a site I am currently developing was displaying an error when trying to submit and says the form has expired.
Based on feedback I found in various forums, the workaround I have found was to turn off CSRF protection through the config file using this code:
$config['disable_csrf_protection'] = 'y';
This fixes the form, but creates another bug that prevents users from being able to log out, causing this error: You are not authorized to perform this action.
Does anyone have a solution that will fix both problems?