# CSRF token error. Try to refresh the page and try again

**URL:** <https://forum.mautic.org/t/csrf-token-error-try-to-refresh-the-page-and-try-again/16839>\
**Category:** Product Support\
**Created:** [November 3, 2020, 10:42am UTC](https://forum.mautic.org/t/csrf-token-error-try-to-refresh-the-page-and-try-again/16839 "2020-11-03T10:42:06Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 16, 2021, 12:18pm UTC](https://forum.mautic.org/t/csrf-token-error-try-to-refresh-the-page-and-try-again/16839/11 "2021-12-16T12:18:00Z")

</div>

I applied another workaround but not sure how good it is, but it works well.  
change php.ini from

session.gc\_maxlifetime = 1440  
to  
session.gc\_maxlifetime = 14400

Whoa, 10x longer cookie lifetime.  
(restart apache of course)

---

_[View the full topic](https://forum.mautic.org/t/csrf-token-error-try-to-refresh-the-page-and-try-again/16839)._
