# Keeping in sync: Sharing sessions between Symfony applications

DevFeed: [Keeping in sync: Sharing sessions between Symfony applications](<https://devfeed.tech/articles/keeping-in-sync-sharing-sessions-between-symfony-applications-27931.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2015-08-26-writing-to-legacy-session/>)

Author: Moein Akbarof Follow

Published: 2015-08-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Symfony](<https://devfeed.tech/topics/symfony.md>), [PHP Data Objects (PDO)](<https://devfeed.tech/topics/pdo.md>), [legacy](<https://devfeed.tech/topics/legacy.md>), [PHP](<https://devfeed.tech/topics/php.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [env-file-security](<https://devfeed.tech/tags/env-file-security.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [legacy-application](<https://devfeed.tech/tags/legacy-application.md>), [php](<https://devfeed.tech/tags/php.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

## AI overview

This article explains how to share session data between a legacy Symfony application using file-based PHP sessions and a newer Symfony application using PDO session storage. It describes the differences in session structure and the investigation into manually writing compatible data to the legacy session file.

## Source excerpt

Learn how we managed to move fast and create a new Symfony application without breaking our old legacy session handling. We write to our legacy session (which is file based) from our new project which uses PDO as the session storage.