是否可以在Symfony 2中跨不同域共享会话?

I need the same session in www.domain1.com and www.domain2.com. Both domains use the same Symfony app. All the examples I found (PHP Shared Sessions across Domain) work only for subdomains (*.mysite.com), but I have two different domains.

Is it possible to share the session across different domains in Symfony2?

You can store session e.g. in Redis or Memcache. This can be configured under

framework:
    session:
        storage_id: ~
        handler_id: ~

Thus session data will be accessible by both of your domains under the same app.

Some useful links: