Troubleshoot Session Expiration

Problem

I keep getting logged out and shown the "Taking a break" page.

Possible Causes

There can be several reasons why your session may prematurely expire:

Your php.ini file is syntactically invalid.

Please ensure the post_max_size and upload_max_filesize items contain valid values.


'Remember me'

By default, sessions last for 1 hour. We recommend to check the 'Remember me' box when logging in to prevent your session from being cut short.


Session cookie misconfiguration

Different domain names

If you don't force all connections to use the same domain e.g. https://www.supportpal.com/ then you will get separate session cookies for www.supportpal.com and supportpal.com

You can change the session cookie attributes so that it can be used on subdomains. Simply set your SupportPal installation domain in /config/production/session.php:

/config/production/session.php

<?php

return [
    'driver' => 'file',
    'domain' => null,
];

Different subdirectories

If you're running SupportPal from a subdirectory, the cookie may be clashing with other software running on the same domain. To change this, set the subdirectory in config/production/session.php:

/config/production/session.php

<?php

return [
    'driver' => 'file',
    'path'   => '/',
];

Unreliable File session driver

SupportPal uses the storage/framework/sessions/ directory to facilitate sessions out of the box. This is great for getting started but the file driver can present reliability problems on high volume installations.

We recommend switching to the Redis session driver, see Redis documentation