# Be sure to restart your server when you modify this file.

if ENV['ENVIRONMENT'] == 'production'
  Rails.application.config.session_store :cookie_store, key: CatarseSettings.get_without_cache(:secret_token), domain: CatarseSettings.get_without_cache(:base_domain), tld_length: 2
else
  Rails.application.config.session_store :cookie_store, key: CatarseSettings.get_without_cache(:secret_token), domain: :all, tld_length: 2
end

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:sessions:create")
# Catarse::Application.config.session_store :active_record_store

# Be sure to restart your server when you modify this file.

if Rails.env.production?
  Rails.application.config.session_store :cookie_store, key: CatarseSettings.get_without_cache(:secret_token), domain: CatarseSettings.get_without_cache(:base_domain), tld_length: 2
else
  Rails.application.config.session_store :cookie_store, key: CatarseSettings.get_without_cache(:secret_token), domain: :all, tld_length: 2
end

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:sessions:create")
# Catarse::Application.config.session_store :active_record_store

Fix cache storage in staging
Fix cache storage in staging
