Project

General

Profile

Actions

Feature #14237

closed

Allow custom path for "_redmine_session_" cookie

Added by Mirko Geissler over 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

We are running two redmine instances in one domain and hit a problem when logging in to both instances concurrently. Without enabling autologin on login both instances interfere with each other while browsing through issues etc. Usually the other instance logs out immediately.

I have set the configs as follows:

First instance:
autologin_cookie_name: "first_instance_autologin"
autologin_cookie_path: "first_instance"
autologin_cookie_secure:

Second instance:
autologin_cookie_name: "second_instance_autologin"
autologin_cookie_path: "second_instance"
autologin_cookie_secure:

When enabling autologin I can see that the autologin cookie is put into its subpath defined above correctly when browsing but the "_redmine_session_" cookie is still in path "/".

My assumption is that this cookie also needs to be placed in a unique path. If this is the issue here I would kindly ask to add this configuration option straight forward.

Thank you!


Related issues

Related to Redmine - Patch #21169: Use config.relative_url_root as the default path for session and autologin cookiesClosedJean-Philippe Lang

Actions
Actions #1

Updated by Toshi MARUYAMA over 11 years ago

Copy config/additional_environment.rb.example to config/additional_environment.rb
and add following code.

config.session_store :cookie_store, {
      :key  => '_redmine_test_session',
      :path => '/test00',
}
Actions #2

Updated by Daniel Ritz about 9 years ago

See #21169

Actions #3

Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from New to Closed

I think this is superseded by #21169.

Actions #4

Updated by Toshi MARUYAMA about 9 years ago

  • Related to Patch #21169: Use config.relative_url_root as the default path for session and autologin cookies added
Actions

Also available in: Atom PDF