# We set the cookie domain dynamically with a Rack middleware.
# See lib/intercode/dynamic_cookie_domain.rb for how this works.

Rails.application.config.session_store :active_record_store, key: '_intercode_session', domain: :all, same_site: :strict

# We set the cookie domain dynamically with a Rack middleware.
# See lib/intercode/dynamic_cookie_domain.rb for how this works.

Rails.application.config.session_store :active_record_store,
  key: '_intercode_session',
  domain: :all,
  same_site: :strict,
  expire_after: 2.weeks

Set an expiration for session cookies
Set an expiration for session cookies
