Announcement
Collapse
No announcement yet.
Multi-instance sessions?
Collapse
X
-
Cookies in Espo are HostOnly cookies, means a cookie can be read by the exact same domain. In my case I run 3 different Espo instances on the same server, all in different sub domains (espo1.example.com, espo2.example.com) on Nginx and this works without any issue. Also because the sub domains are different domains, the automatic logout as mentioned above doesn't happen.
- Likes 2
Leave a comment:
-
Originally posted by diyoyo View PostHi,
I have multiple (different) instances of EspoCRM running on the same server, and in my browser, if I log in into one instance, then, I am automatically logged out of the other.
Wouldn't it be nice to be able to log into both at the same time?
Thanks.
Cheers,
Leave a comment:
-
You would have to look into cookies to see that, I know with some forum it possible to be cookie-less because it use a "sid" code in your URL. Then you have the giant tracking monster such as 'Gogle' and 'Amozon' where despite blocking it in anyway you will have a cookies or some other form.
Not sure if it a design flaw or intended security design of EspoCRM but that just the way it is, another reason might be 'simply don't have manpower or time'.
Of course there is nothing to stop you from doing a Pull Request and it might get added to the code.
I would say if it on a different domain then it would just be how it is designed. For example some website have a "Forum" section in a subdomain and a "Website" in their main domain, perhaps even a fourth one as "Portal" in another subdomain. All of these can have separate cookies (most of the time that is the case) or share same cookies so you can log in one log in all.
You could use a cookies monitor (I know Firefox addon have one) and see how cookies is being behave and see how it work with, then compare it to your favorite website and EspoCRM server you have.
But this is a topic that probably out of this thread...
Leave a comment:
-
Thanks for the workaround. But I still don't understand why these cookies are shared between two websites that are completely different. Shouldn't the cookies have some kind of label to identify from which website it originates? even if the two espocrm are hosted in the same server, just in a different folder ?
Leave a comment:
-
Use your internet browser to isolate cookies (which is what determine whether you are logged in or logged out).
For Firefox use extension "Container"
For Chrome use "User Profile"
Any anything else, good luck. I don't know
Alternative you can have 2 by using Den method, one in normal browsing and another in Private/Incognito window.
Leave a comment:
-
Multi-instance sessions?
Hi,
I have multiple (different) instances of EspoCRM running on the same server, and in my browser, if I log in into one instance, then, I am automatically logged out of the other.
Wouldn't it be nice to be able to log into both at the same time?
Thanks.
Cheers,Tags: None
- Likes 1
Leave a comment: