Skip to content

Control panel login broken with session driver cookie #14147

@piedshag

Description

@piedshag

Bug description

We are getting an error 419 page expired when trying to login to the control panel, this started happening after we migrated from statamic 5 -> 6. We have been able to narrow this down to the session driver cookie.

How to reproduce

Followed the steps in the quick start guide https://statamic.dev/getting-started/quick-start-guide and created a basic app with statamic new cyberspace-place, then made a couple of changes

  1. SESSION_DRIVER to cookie
  2. APP_URL to localhost:8000

Tried to login with the user I created and get 419 Page Expired

Logs

No logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.53.0
PHP Version: 8.3.17
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: localhost:8000
Maintenance Mode: OFF
Timezone: UTC
Locale: en

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

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

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.4.1 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions