Login in OctoberCMS with multiple websites in one browser

I use OctoberCMS and I found this very useful.

However, I came across one strange thing that I want to share with you guys.

I have two different sites on my local server, say website1 and website2 , and the corresponding URLs are similar to this http: // localhost / website1 and http: // localhost / website2 .

And the admin URLs look something like this: http: // localhost / website1_admin and http: // localhost / website2_admin .

In addition, both sites have two different databases, and these databases are only on my local server. (I am using XAMPP on a Windows computer).

Now the interesting part: if I log in to website1 , and then I log in to website2 and return to website1 , then I automatically log out of it.

I'm just wondering why this is happening? Or, Does OctoberCMS work? Or Do I need to make sure that what I have not done yet? still?

I just checked the app.php file on both sites and checked the values ​​of keyboth websites and I found that they are different.

Any thoughts?

+4
1

, cookie october_session localhost. , cookie .

:

1) xampp, - http://website1.localhost http://website2.localhost - cookie october_session.

2) config/session.php 'cookie' => 'october_session',, cookie .

+5

Source: https://habr.com/ru/post/1673892/


All Articles