How to share a symfony2 session by subdomain

How can I share a session between symfony2 subdomains? I am using Symfony version 2.0.14

I have mysite.com, when a user logs on to this site and moves to corporate .moyite.com, he should display the login as the same application, and all resources are shared by the same configuration files, etc., only that created virtual host that points to the same project folders.

A little googling shows this soln

  framework:
     session:
         domain: .mysite.com

but it does not work for me. Can someone lead me in the right direction?

-deepak

+4
source share
1 answer

Please check if you have valid tld in local environment

+5
source

Source: https://habr.com/ru/post/1439875/


All Articles