# The Case of the Missing PHP Session

DevFeed: [The Case of the Missing PHP Session](<https://devfeed.tech/articles/the-case-of-the-missing-php-session-31306.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/the-case-of-the-missing-php-session>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-06-12T02:27:00Z

Content type: article

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [16-04](<https://devfeed.tech/tags/16-04.md>), [cms](<https://devfeed.tech/tags/cms.md>), [craft](<https://devfeed.tech/tags/craft.md>), [created](<https://devfeed.tech/tags/created.md>), [here-s](<https://devfeed.tech/tags/here-s.md>), [investigations](<https://devfeed.tech/tags/investigations.md>), [logging](<https://devfeed.tech/tags/logging.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [php](<https://devfeed.tech/tags/php.md>), [saas](<https://devfeed.tech/tags/saas.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [solved](<https://devfeed.tech/tags/solved.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [website](<https://devfeed.tech/tags/website.md>)

## AI overview

An investigation into why users of a Craft CMS SaaS website were logged out unexpectedly. The article explains that PHP sessions on Ubuntu expire after 24 minutes of inactivity by default, regardless of client-side session settings.

## Source excerpt

A SaaS website created with Craft CMS was logging out sessions after 30 minutes; here's how I solved it