Skip to content

Session timeout expiry does not always expire the session #12484

Description

@martyf

Bug description

Sometimes it does... but sometimes it doesn't.

Especially if the window is in focus during the timeout, I've noticed that the session can "expire" but then it doesn't actually really expire and renews. Like here it expires, asks for password, expires, then goes back to the CP with no user interaction at all - so it's not actually logged the user out.

Untitled.mov

How to reproduce

  1. Statamic alpha 8
  2. Create a user (mine has two factor - not sure if that matters)
  3. Set SESSION_LIFETIME to 2
  4. Log in, and wait 1 minute - the timeout modal appears, then wait another minute, and it can sometimes automatically renew the session

Logs

Environment

EnvironmentApplication Name: StatamicLaravel Version: 12.29.0PHP Version: 8.4.12Composer Version: 2.8.11Environment: localDebug Mode: ENABLEDURL: Maintenance Mode: OFFTimezone: Australia/AdelaideLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / singleMail: smtpQueue: syncSession: fileStoragepublic/storage: LINKEDStatamicAddons: 0Sites: 1Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 6.0.0-alpha.8 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions