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

# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random, 
# no regular words or you'll be exposed to dictionary attacks.

ActionController::Base.session = {
  :key => '_fixmytransport_session',
  :secret => MySociety::Config.get("COOKIE_STORE_SESSION_SECRET", 'this default is insecure as code is open source, please override for live sites in config/general; this will do for local 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 "rake db:sessions:create")
ActionController::Base.session_store = :active_record_store

# Insert a bit of middleware code to prevent uneeded cookie setting.
require 'lib/fixmytransport/strip_empty_sessions'
ActionController::Dispatcher.middleware.insert_before ActionController::Base.session_store, FixMyTransport::StripEmptySessions, :key => '_fixmytransport_session', :path => "/", :httponly => true
```

Use full path in require to allow load from crons
user
```ruby
# Be sure to restart your server when you modify this file.

# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random, 
# no regular words or you'll be exposed to dictionary attacks.

ActionController::Base.session = {
  :key => '_fixmytransport_session',
  :secret => MySociety::Config.get("COOKIE_STORE_SESSION_SECRET", 'this default is insecure as code is open source, please override for live sites in config/general; this will do for local 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 "rake db:sessions:create")
ActionController::Base.session_store = :active_record_store

# Insert a bit of middleware code to prevent uneeded cookie setting.
require "#{RAILS_ROOT}/lib/fixmytransport/strip_empty_sessions"
ActionController::Dispatcher.middleware.insert_before ActionController::Base.session_store, FixMyTransport::StripEmptySessions, :key => '_fixmytransport_session', :path => "/", :httponly => true
```
assistant