Skip to content

Commit

Permalink
Update default domain set in session_store.rb
Browse files Browse the repository at this point in the history
Update default domain set in session_store.rb
  • Loading branch information
jayjay-w authored Jul 26, 2024
1 parent 03a36ec commit eb9da56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 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')
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

0 comments on commit eb9da56

Please sign in to comment.