---
title: "Discussion on \"Auto Redirect to Login Page on Laravel Page Expired\" | Hashnode"
description: "Discussion on \"Auto Redirect to Login Page on Laravel Page Expired\". In Laravel, when the CSRF token has expired, the app usually shows a 419|Page Expired error.\nTo auto-redirect to the login page when a Laravel page expires, we can modify the App\\Exceptions\\Handler file. This file handles all exceptions that are thro..."
url: "https://hashnode.com/posts/auto-redirect-to-login-page-on-laravel-page-expired/65149f52c7f505a2eb56d144"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Auto Redirect to Login Page on Laravel Page Expired](https://nuruddeen.hashnode.dev/auto-redirect-to-login-page-on-laravel-page-expired?utm_source=hashnode&utm_medium=feed)

In Laravel, when the CSRF token has expired, the app usually shows a 419|Page Expired error. To auto-redirect to the login page when a Laravel page expires, we can modify the App\\Exceptions\\Handler file. This file handles all exceptions that are thro...

Sep 27, 2023 · 2 min read · nuruddeen.hashnode.dev  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)

## Written by

[Nuruddeen Sambo](https://hashnode.com/@Nuruddeen)

@Nuruddeen · Bauchi, Nigeria

  
[View profile](https://hashnode.com/@Nuruddeen)

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
