Generate uniq session keys (needed if you run multible installations).
This commit is contained in:
parent
381532da45
commit
f85adab5f1
1 changed files with 3 additions and 1 deletions
|
@ -5,4 +5,6 @@
|
||||||
# Use the database for sessions instead of the cookie-based default,
|
# Use the database for sessions instead of the cookie-based default,
|
||||||
# which shouldn't be used to store highly confidential information
|
# which shouldn't be used to store highly confidential information
|
||||||
# (create the session table with "rails generate session_migration")
|
# (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]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue