Skip to content

Instantly share code, notes, and snippets.

@oojikoo-gist
Created April 12, 2015 12:43
Show Gist options
  • Save oojikoo-gist/aa4caff7b00a90f2d88e to your computer and use it in GitHub Desktop.
Save oojikoo-gist/aa4caff7b00a90f2d88e to your computer and use it in GitHub Desktop.
rails: database based session

The best practice is to use a database based session, which thankfully is very easy with Rails:

Project::Application.config.session_store :active_record_store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment