File: session_store.rb

package info (click to toggle)
liblocale-rails-ruby 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,224 kB
  • ctags: 295
  • sloc: ruby: 727; sh: 22; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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!
# Make sure the secret is at least 30 characters and all random, 
# no regular words or you'll be exposed to dictionary attacks.
ActionController::Base.session = {
  :key         => '_test_session',
  :secret      => '32c98cd59b34f85a8e53eeae63eb31f8f3af44710f00998f4e16e24f580090c9b88f3e2552e9f7e913cfb94521e57f76d038f1c936872189ffb68361f1b677c2'
}

# 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")
# ActionController::Base.session_store = :active_record_store