```ruby
# Be sure to restart your server when you modify this file.

Rails.application.config.session_store :cookie_store, key: '_whitehall_session',
                                                           secure: !(Rails.env.test? || Rails.env.development?)

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Rails.application.config.session_store :active_record_store
```

Allow the disabling secure cookies in Rails production environment
user
```ruby
# Be sure to restart your server when you modify this file.

Rails.application.config.session_store :cookie_store, key: '_whitehall_session',
                                                      secure: !(Rails.env.test? || Rails.env.development? || ENV['DISABLE_SECURE_COOKIES'])

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Rails.application.config.session_store :active_record_store
```
assistant