foreman/config/initializers/session_store.rb @ 8a65dff7
5563217a | Ohad Levy | # 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!
|
|||
383a612c | Ohad Levy | # Make sure the secret is at least 30 characters and all random,
|
|
5563217a | Ohad Levy | # no regular words or you'll be exposed to dictionary attacks.
|
|
ActionController::Base.session = {
|
|||
1fe671cf | Ohad Levy | :key => '_Foreman_session',
|
|
5563217a | Ohad Levy | :secret => '4fe1a103699cf36976181cb4d343e6cb27d7904113c9a2113862c53b51f12357f413c996e820e6e544464242915d643d32b698a9679bbfe63f6eedfd9bf67961'
|
|
}
|
|||
# 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")
|
|||
f254ce22 | Ohad Levy | ActionController::Base.session_store = :active_record_store
|