Sha256: b9c16b32356ed0bdbadf5139c03dc3f844ec4061d15aed390bb3909f1af4facf

Contents?: true

Size: 440 Bytes

Versions: 55

Compression:

Stored size: 440 Bytes

Contents

# This extends session expiration longer than Rails defaults, to keep
# carts around longer. Many retailers have requested this.

# NOTE: this must be set in seconds
env_expire_after = ENV['WORKAREA_SESSION_STORE_EXPIRE_AFTER']

Rails.application.config.session_store(
  :cookie_store,
  key: "_#{Rails.application.class.name.deconstantize.underscore}_session",
  expire_after: env_expire_after.present? ? env_expire_after.to_i : 2.weeks
)

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
workarea-core-3.4.33 config/initializers/22_session_store.rb
workarea-core-3.5.11 config/initializers/22_session_store.rb
workarea-core-3.5.10 config/initializers/22_session_store.rb
workarea-core-3.4.32 config/initializers/22_session_store.rb
workarea-core-3.5.9 config/initializers/22_session_store.rb
workarea-core-3.4.31 config/initializers/22_session_store.rb
workarea-core-3.5.8 config/initializers/22_session_store.rb
workarea-core-3.4.30 config/initializers/22_session_store.rb
workarea-core-3.5.7 config/initializers/22_session_store.rb
workarea-core-3.4.29 config/initializers/22_session_store.rb
workarea-core-3.5.6 config/initializers/22_session_store.rb
workarea-core-3.4.28 config/initializers/22_session_store.rb
workarea-core-3.5.5 config/initializers/22_session_store.rb
workarea-core-3.4.27 config/initializers/22_session_store.rb
workarea-core-3.5.4 config/initializers/22_session_store.rb
workarea-core-3.4.26 config/initializers/22_session_store.rb
workarea-core-3.5.3 config/initializers/22_session_store.rb
workarea-core-3.4.25 config/initializers/22_session_store.rb
workarea-core-3.5.2 config/initializers/22_session_store.rb
workarea-core-3.4.24 config/initializers/22_session_store.rb