419 Page Expired

Some frameworks use this nonstandard response when a session or anti-forgery token is no longer acceptable.

All HTTP status codes

What does HTTP 419 mean?

A page left open across a session change may submit an outdated anti-forgery token. Laravel commonly represents this mismatch with 419, but the code has no universal HTTP definition. Inspect the actual framework response and session configuration. Disabling CSRF checks to suppress the symptom would remove a protection rather than repair expired sessions or incorrectly cached forms.

An investigation example

Illustrative form-expiry investigation
Submission response: 419 Page Expired
A cached page contains a token from an earlier session.
Action: correct caching and refresh the form's session state.
Verify: fresh submissions work and stale forms recover without silently losing entered data.

Common causes

  • A form remained open long enough for its session and CSRF token relationship to expire.
  • The browser does not send the expected session cookie because its domain, security or same-site settings do not match the request.
  • A cached form or client integration submits an outdated or missing CSRF token.

Diagnose the response

Check session continuity and CSRF handling for the failed form, including cookie scope and cached HTML.

  • Reload the form to obtain a current session and token, preserving any unsent user input first. Confirm whether a fresh submission also fails before increasing session lifetimes.
  • Inspect session cookies and the form's token or CSRF header in browser developer tools. Check hostname, HTTPS detection and trusted-proxy configuration when requests pass through a load balancer.
  • Review page caching and session storage if failures affect many users. Do not disable CSRF protection or broadly exempt routes to make the symptom disappear.

What it means for website monitoring

A successful GET can coexist with failing form submissions. Check the session-dependent journey separately and compare host, scheme and cookie configuration after a deployment.

Reference