diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /config/initializers/session_store.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'config/initializers/session_store.rb')
-rw-r--r-- | config/initializers/session_store.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index bb2e01a30f1..a7754667320 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -19,15 +19,7 @@ cookie_key = if Rails.env.development? "_gitlab_session" end -store = if Gitlab::Utils.to_boolean(ENV['GITLAB_USE_REDIS_SESSIONS_STORE'], default: true) - Gitlab::Redis::Sessions.store( - namespace: Gitlab::Redis::Sessions::SESSION_NAMESPACE - ) - else - Gitlab::Redis::SharedState.store( - namespace: Gitlab::Redis::Sessions::SESSION_NAMESPACE - ) - end +store = Gitlab::Redis::Sessions.store(namespace: Gitlab::Redis::Sessions::SESSION_NAMESPACE) Gitlab::Application.config.session_store( :redis_store, # Using the cookie_store would enable session replay attacks. |