---
title: "Laravel Legacy Bridge: Carry Authenticated Sessions from a Legacy App into Laravel"
url: https://daily.dev/posts/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-app-into-laravel-8dhsgyhoe
source_url: https://laravel-news.com/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-app-into-laravel
type: article
source: "Laravel News"
published: 2026-07-15T13:48:22.335Z
updated: 2026-08-24T07:04:14.270Z
tags: ["authentication", "php", "laravel"]
reading_time: 5
upvotes: 14
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Legacy Bridge: Carry Authenticated Sessions from a Legacy App into Laravel

**[Laravel News](https://daily.dev/sources/ln)** · 5 min read · 14 upvotes · 0 comments

## Summary

Laravel Legacy Bridge is a PHP package that solves the double-login problem when incrementally migrating a legacy PHP app (e.g., CodeIgniter) to Laravel. It works by reading the legacy PHPSESSID cookie on unauthenticated requests, decoding the session payload from the legacy database, and calling loginUsingId() to authenticate the user in Laravel — so users never see a second login prompt mid-migration. Key features include support for multiple payload formats (native PHP, JSON, Laravel serialized, encrypted), configurable resolver drivers (auto, key-based, or custom class), typed events for success/failure with no built-in logging, one-time session invalidation after bridging, an interactive install command with framework presets, and a verify command to test configuration against a real legacy database before going live. Security considerations include treating the legacy sessions table as a trust boundary, requiring HTTPS on both apps, and using read-only database credentials.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-app-into-laravel>

## Similar posts on daily.dev

- [Laravel Introduces First-Party Passkey Authentication Support](https://daily.dev/posts/laravel-introduces-first-party-passkey-authentication-support-cztccowtr) · Laravel News · 18 upvotes · 2 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-app-into-laravel-8dhsgyhoe)
