# Longer session time - how to change it?

**URL:** <https://forum.mautic.org/t/longer-session-time-how-to-change-it/24877>\
**Category:** General Discussion\
**Created:** [July 26, 2022, 3:18pm UTC](https://forum.mautic.org/t/longer-session-time-how-to-change-it/24877 "2022-07-26T15:18:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [July 26, 2022, 6:18pm UTC](https://forum.mautic.org/t/longer-session-time-how-to-change-it/24877/3 "2022-07-26T18:18:34Z")

</div>

> [@CSRF token error. Try to refresh the page and try again](https://forum.mautic.org/t/csrf-token-error-try-to-refresh-the-page-and-try-again/16839/11):
>
> 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/longer-session-time-how-to-change-it/24877)._
