]> git.openstreetmap.org Git - rails.git/blob - config/initializers/session_store.rb
Update Potlatch 2 to 0.5-294-g58c9d2c build
[rails.git] / config / initializers / session_store.rb
1 # Be sure to restart your server when you modify this file.
2
3 # Your secret key for verifying cookie session data integrity.
4 # If you change this key, all old sessions will become invalid!
5 # Make sure the secret is at least 30 characters and all random, 
6 # no regular words or you'll be exposed to dictionary attacks.
7 ActionController::Base.session = {
8   :key         => '_osm_session',
9   :secret      => 'd886369b1e709c61d1f9fcb07384a2b96373c83c01bfc98c6611a9fe2b6d0b14215bb360a0154265cccadde5489513f2f9b8d9e7b384a11924f772d2872c2a1f'
10 }
11
12 # Use the database for sessions instead of the cookie-based default,
13 # which shouldn't be used to store highly confidential information
14 # (create the session table with "rake db:sessions:create")
15 unless STATUS == :database_offline or STATUS == :database_readonly
16   ActionController::Base.session_store = :sql_session_store
17 end