Skip to content

Allow setting session cookie path via config #5473

@pano9000

Description

@pano9000

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions