-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[CV2-4007] update _checkdesk_session cookie permissions to en…
- Loading branch information
Showing
3 changed files
with
1 addition
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Retrieve the session key and domain based on the environment using CheckConfig. | ||
cookie_key = CheckConfig.get('session_store_key', '_checkdesk_session') | ||
domain_setting = CheckConfig.get('session_store_domain', Rails.env.development? ? 'localhost' : '.checkmedia.org') | ||
|
||
# Configure the session store with the dynamically obtained session key and domain. | ||
Rails.application.config.session_store :cookie_store, key: cookie_key, domain: domain_setting | ||
Rails.application.config.session_store :cookie_store, key: '_checkdesk_session' |
This file was deleted.
Oops, something went wrong.