Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Force all environments to use the same logger level
- # (by default production uses :info, the others :debug)
- # config.log_level = :debug
- # 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.
- secret_file = File.join(RAILS_ROOT, "secret")
- if File.exist?(secret_file)
- secret = File.read(secret_file)
- else
- secret = Rails::SecretKeyGenerator.new("insoshi").generate_secret
- File.open(secret_file, 'w') { |f| f.write(secret) }
- end
- config.action_controller.session = {
- :session_key => '_instant_social_session',
- :secret => secret
- }
Add Comment
Please, Sign In to add comment