Sharing session in domain and sub-domain #36276
Unanswered
maqsudinamdar
asked this question in
Q&A
Replies: 1 comment
-
When you discover the answer, please share |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've two Laravel application on same server but on different path. And I want to merge both application by sharing session.
Both of these application has domain and sub-domain combination namely:
example.com
tool.example.com
And I'd like authenticate user in
tool.example.com
from authenticating inexample.com
using following articles.I tried the following:
APP_KEY
example.com
Laravel application I did the following:.env
Storing session in database. link
In
example.com
we're usingexample
Guards withexample
Provider usingExample
Model to authenticate web request.config/auth.php
Similarly,
tool.example.com
:.env
tool.example.com
i've assigned the$table
variable asexample
inUser
ModelUser.php
config/auth.php
Any help is greatly appreciated. Thanks! in advance.
Beta Was this translation helpful? Give feedback.
All reactions