Skip to content

Commit

Permalink
Merge pull request #1277 from alphagov/disable-session-store
Browse files Browse the repository at this point in the history
Disable session store in order to allow fastly to cache
  • Loading branch information
kentsanggds authored Jun 11, 2024
2 parents 28e9362 + 29ae21e commit dddb809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = true

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = true

config.action_mailer.perform_caching = false

# Tell Action Mailer not to deliver emails to the real world.
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Rails.application.config.session_store :cookie_store, expire_after: 14.days, secure: !(Rails.env.development? || Rails.env.test?), httponly: true
Rails.application.config.session_store :disabled

0 comments on commit dddb809

Please sign in to comment.