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.45 config/initializers/22_session_store.rb
workarea-core-3.4.44 config/initializers/22_session_store.rb
workarea-core-3.4.43 config/initializers/22_session_store.rb
workarea-core-3.4.42 config/initializers/22_session_store.rb
workarea-core-3.4.41 config/initializers/22_session_store.rb
workarea-core-3.5.19 config/initializers/22_session_store.rb
workarea-core-3.4.40 config/initializers/22_session_store.rb
workarea-core-3.5.18 config/initializers/22_session_store.rb
workarea-core-3.4.39 config/initializers/22_session_store.rb
workarea-core-3.5.17 config/initializers/22_session_store.rb
workarea-core-3.4.38 config/initializers/22_session_store.rb
workarea-core-3.5.16 config/initializers/22_session_store.rb
workarea-core-3.4.37 config/initializers/22_session_store.rb
workarea-core-3.5.15 config/initializers/22_session_store.rb
workarea-core-3.4.36 config/initializers/22_session_store.rb
workarea-core-3.5.14 config/initializers/22_session_store.rb
workarea-core-3.4.35 config/initializers/22_session_store.rb
workarea-core-3.5.13 config/initializers/22_session_store.rb
workarea-core-3.4.34 config/initializers/22_session_store.rb
workarea-core-3.5.12 config/initializers/22_session_store.rb