Suppose in a domain (app.domain.com
) I have set a Session like this:
Session::put(\'test\', \'value\');
Then in different doma
If you have the subdomains hosted on different physical machines, setting the domain in app/config/session.php
to this:
'domain' => '.domain.com'
will work as long as the two apps will be able to access a shared session data storage (for example using the database
session driver and having a common database that stores the sessions).