Skip to content

Instantly share code, notes, and snippets.

@simonlehmann
Created March 1, 2017 03:10
Show Gist options
  • Save simonlehmann/12e3aa3c6677df203727508aa896a998 to your computer and use it in GitHub Desktop.
Save simonlehmann/12e3aa3c6677df203727508aa896a998 to your computer and use it in GitHub Desktop.

Revisions

  1. simonlehmann created this gist Mar 1, 2017.
    4 changes: 4 additions & 0 deletions session_store.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # Be sure to restart your server when you modify this file.

    Rails.application.config.session_store :cookie_store, key: '_myapp_name_session'
    # Change :key (e.g: from _myapp_name_session to _myapp_name_sessions) and all users are logged out after server restart.