Announcement

Collapse
No announcement yet.

One instance fails when 2 instances of the Espocrm loaded in same browser session

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • One instance fails when 2 instances of the Espocrm loaded in same browser session

    Environment 1:
    ----------------------
    (1) Php 7.3.19
    (2) MariaDb: 10.2.32
    (3) CentOS Linux
    (4) Browser: Firefox 78.0.2 (64bit)
    (5) Espocrm: 5.9.3

    Environment 2:
    ---------------------
    (1) Php 7.2.24
    (2) MySQL: 5.6
    (3) CentOS Linux
    (4) Browser: Firefox 78.0.2 (64bit)
    (5) Espocrm: 5.7.11

    Steps performed:
    ----------------------------
    (1) Created a CRM Tigascrmtst (test) and customised for use.
    (2) Cloned Tigascrmtst CRM and MySQL DB and created Tigascrmstg (staging)
    (3) Changed database name and url in tigascrmstg
    (4) Loaded tigascrmtst and login - Works fine
    (5) Loaded tigascrmstg and login in the same browser - Works Fine but error in Tigascrmtst which crashes files and logs out with possible data mess up.

    Diagnostics:
    -------------
    (1) Logs on both instances have no entries
    (2) No server error
    (3) Web Develop reports shows "Samesite" warnings. Refer screencaps 1,2 and 3.
    (4) Same problem in both environment 1 and 2

    Click image for larger version  Name:	screencap1 - webdeveloper console tigascrmtst.png Views:	0 Size:	26.0 KB ID:	60360

    Click image for larger version  Name:	screencap2 - webdeveloper console.png Views:	0 Size:	26.0 KB ID:	60361





    Last edited by murugappan; 07-13-2020, 02:23 AM.

  • #2
    EspoCRM doesn't support login to multiple instances simultaneously within the same browser if domain names of instances are the same. It's recommended to use sub-domains.

    It's not considered as a bug.
    Last edited by yuri; 07-13-2020, 07:17 AM.

    Comment


    • tothewine
      tothewine commented
      Editing a comment
      easy fix for this could be to prefix all storage/cookie keys with an instance name defined in config

    • yuri
      yuri commented
      Editing a comment
      Since this problem may occur only on testing or dev environments, I don't think it worth implementing. For a production separate domains should be used.

  • #3
    yuri Looks like it's not only instance, but the same instance two separate windows/tabs don't work simultaneously as well. According to my settings for autorisation "Only one auth token per user " is taken off.
    Attached Files

    Comment


    • yuri
      yuri commented
      Editing a comment
      For situations when you need to multiple logins in the same browser you can use an incognito tab.

  • #4
    yuri thank you for the update. I raised this as bug because i did not find any documentation that explains this. Ok great. I will have to put this in my installation notes.

    Comment

    Working...
    X