Removed session key from version control.
* Maybe you have to delete your cookies after pulling this commit.
This commit is contained in:
parent
356d922eb4
commit
d11c619c82
3 changed files with 17 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@ capfile
|
||||||
config/environments/fcschinke09.rb
|
config/environments/fcschinke09.rb
|
||||||
*.swp
|
*.swp
|
||||||
public/**/*_cached.*
|
public/**/*_cached.*
|
||||||
|
config/initializers/session_store.rb
|
|
@ -45,16 +45,7 @@ Rails::Initializer.run do |config|
|
||||||
# config.active_record.observers = :cacher, :garbage_collector
|
# config.active_record.observers = :cacher, :garbage_collector
|
||||||
|
|
||||||
# Make Active Record use UTC-base instead of local time
|
# Make Active Record use UTC-base instead of local time
|
||||||
config.time_zone = 'UTC'
|
config.time_zone = 'Berlin'
|
||||||
|
|
||||||
# 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.
|
|
||||||
config.action_controller.session = {
|
|
||||||
:session_key => '_foodsoft_session',
|
|
||||||
:secret => "dhjfuez47892nsl39fh83ham3jsdfjkh4879sdh"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Specify gems that this application depends on.
|
# Specify gems that this application depends on.
|
||||||
# They can then be installed with "rake gems:install" on new installations.
|
# They can then be installed with "rake gems:install" on new installations.
|
||||||
|
|
15
config/initializers/session_store.rb.SAMPLE
Normal file
15
config/initializers/session_store.rb.SAMPLE
Normal file
|
@ -0,0 +1,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 => '_foodsoft_session',
|
||||||
|
:secret => 'as27ashi20867asdl27a9l2oa87dgh2o6a6s92l34las00121hha87072hla70072h097243hha092h4a'
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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
|
Loading…
Reference in a new issue