Skip to content
Snippets Groups Projects
Unverified Commit a9a8181a authored by wolbernd's avatar wolbernd Committed by GitHub
Browse files

Set path attribute in session cookie when relative url is set (#5651)


* Set path attribute in session cookie when relative url is set

* Update session_store.rb

---------

Co-authored-by: default avatarAhmad Farhat <ahmad.farhat@blindsidenetworks.com>
parent 33023459
Branches
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@
# frozen_string_literal: true
if ENV['LOADBALANCER_ENDPOINT'].present?
Rails.application.config.session_store :cookie_store, key: '_greenlight-3_0_session', domain: ENV.fetch('SESSION_DOMAIN_NAME', nil)
Rails.application.config.session_store :cookie_store, key: '_greenlight-3_0_session', domain: ENV.fetch('SESSION_DOMAIN_NAME', nil),
path: ENV.fetch('RELATIVE_URL_ROOT', '/')
else
Rails.application.config.session_store :cookie_store, key: '_greenlight-3_0_session'
Rails.application.config.session_store :cookie_store, key: '_greenlight-3_0_session', path: ENV.fetch('RELATIVE_URL_ROOT', '/')
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment