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

Environment
Application Name: Statamic
Laravel Version: 12.29.0
PHP Version: 8.4.12
Composer Version: 2.8.11
Environment: local
Debug Mode: ENABLED
URL: 
Maintenance Mode: OFF
Timezone: Australia/Adelaide
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-alpha.8 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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