cartodb-4.42/config/initializers/session_store.rb

3 lines
280 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
domain = CartoDB.subdomainless_urls? ? nil : Cartodb.config[:session_domain]
CartoDB::Application.config.session_store :cookie_store, key: '_cartodb_session', secure_random: true, domain: domain, expire_after: 7.days, httponly: true, secure: Cartodb.config[:ssl_required] == true