aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-23 18:47:24 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-23 18:47:24 +0000
commitbd421f7591ef22b750a3d6bc1d1fa1a59071d099 (patch)
treedf8b08bb3ce39981d3c14f8fd4f9955b1076a268
parente74bdfc96a1c1b8664e22db22baaf79c0ddbf481 (diff)
Update symbol used for session key
-rw-r--r--config/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb
index b905e2b70..48dc15326 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -69,7 +69,7 @@ Rails::Initializer.run do |config|
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
- :session_key => '_wdtk_cookie_session',
+ :key => '_wdtk_cookie_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')
}
config.action_controller.session_store = :cookie_store