Describe feature
Hi,
When you run several instances of TriliumNext server on the same domain, you will currently have issues with having valid user sessions for both instances in the same browser.
I have the following setup, which made the issue prominent:
I have a domain, running a reverse-proxy that forwards requests to different instances, based on paths, e.g.
- domain.com/triliumnext/instanceA
- domain.com/triliumnext/instanceB
every instance will have its own session store, but the session cookie will be set by all instances with "trilium.sid" as name and "/" as path.
If you login in instanceA and then login to instanceB, your instanceA session cookie data will be overwritten by the instanceB cookie – and you will be logged out from instanceA.
Additional Information
No response
Describe feature
Hi,
When you run several instances of TriliumNext server on the same domain, you will currently have issues with having valid user sessions for both instances in the same browser.
I have the following setup, which made the issue prominent:
I have a domain, running a reverse-proxy that forwards requests to different instances, based on paths, e.g.
every instance will have its own session store, but the session cookie will be set by all instances with "trilium.sid" as name and "/" as path.
If you login in instanceA and then login to instanceB, your instanceA session cookie data will be overwritten by the instanceB cookie – and you will be logged out from instanceA.
Additional Information
No response