From f85adab5f134b2ce91a51ac91e227f8997dc4d31 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 6 Mar 2013 15:24:46 +0100 Subject: [PATCH] Generate uniq session keys (needed if you run multible installations). --- config/initializers/session_store.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 64ed9fe58..eee49a519 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -5,4 +5,6 @@ # 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") -Zammad::Application.config.session_store :active_record_store +Zammad::Application.config.session_store :active_record_store, { + :key => '_zammad_session_' + Digest::MD5.hexdigest(Rails.root.to_s).to_s[5..15] +}