arrowill12
arrowill12

Reputation: 1804

using two instances of cartalyst sentry 2

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

Answers (1)

ceejayoz
ceejayoz

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

Related Questions