Skip to content

Instantly share code, notes, and snippets.

@gravis
Created July 21, 2010 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gravis/484423 to your computer and use it in GitHub Desktop.
Save gravis/484423 to your computer and use it in GitHub Desktop.
# in config/environment.rb :
config.action_controller.session = {
:key => '_myapp_session',
:secret => 'super_very_long_key_more_than_30_chars',
#:secure => true, # Only enable secure here if your dev env is using ssl, which is certainly not the case
:expire_after => 3600 # 1 hour
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment