Reputation: 1804
I am currently working on two laravel projects, both use Sentry2 for authentication, I am having an issue where if I log in to one app I will be kicked out of the other. I understand sentry2 is made so that you can only log in from one broswer/computer at a time, but this is two separate instances of sentry(running on the same server). I have two database and the apps are completely separate. does anyone have a work around for this? is it using the same session variable that is conflicting?
thanks!
Upvotes: 0
Views: 99
Reputation: 180065
If they're on the same domain, it's likely that the two apps are writing over each other's session cookie in the browser.
In app/config/session.php
, change 'cookie' => 'laravel_session'
to something unique for each app.
Upvotes: 2