PX Forums demoYou are browsing as a visitor. Try it as: Member · Moderator · AdminOne click, no password. All changes are reset every night at 03:45 CET.
Skip to content

Users get logged out every few minutes

Log in
Replies
5
Voices
5
Views
366
Last activity
Score 1
Chloé Martin Topic starter Helper159 karma33 posts · Joined Dec 2026

Editors complain that they lose their session while writing. Nothing in the logs.

Choose a reaction
Reply

Solution Go to post #3

Most often the session lifetime is shorter than you think, or sessions are stored in a folder the server cleans up. Look at:

  • Settings > Security > Session lifetime (set 60 minutes or more).
  • Whether your host's PHP session.gc_maxlifetime is lower; the lower value wins.
  • A caching plugin or CDN that caches pages with a session cookie.

After setting the lifetime to 120 minutes the problem went away on three sites I manage.

5 answers

Score 10
Sofia Ricci Helper759 karma59 posts · Joined Dec 2026
Solution

Most often the session lifetime is shorter than you think, or sessions are stored in a folder the server cleans up. Look at:

  • Settings > Security > Session lifetime (set 60 minutes or more).
  • Whether your host's PHP session.gc_maxlifetime is lower; the lower value wins.
  • A caching plugin or CDN that caches pages with a session cookie.

After setting the lifetime to 120 minutes the problem went away on three sites I manage.

Choose a reaction
Reply
Score 3
Priya Nair Expert878 karma62 posts · Joined Dec 2026

I had the same on 2.3 and it went away after updating the theme. Which theme are you using?

Choose a reaction
Reply
Score 0
Sofia Ricci Helper759 karma59 posts · Joined Dec 2026

Can you paste the exact error text? Photos of the screen are hard to search for.

Choose a reaction
Reply
Score 0
Sam O'Connor Member114 karma32 posts · Joined Dec 2026

This sounds like a memory limit. Raise memory_limit to 256M for a test and see.

Choose a reaction
Reply
Score -1
Maya Okonkwo Moderator540 karma57 posts · Joined Dec 2026

If your host has a PHP error log, look there as well. The Lumen log only shows what Lumen caught.

Choose a reaction
Reply