forked from manno/frab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use secure session store by default in production env
- Loading branch information
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Frab::Application.config.session_store :active_record_store, key: '_frab_session' | ||
|
||
# Example for a cookie store, with secure flag set for SSL hosting in production mode | ||
# | ||
# Frab::Application.config.session_store :cookie_store, | ||
# key: '_frab_session', | ||
# secure: Rails.env == 'production', | ||
# httponly: true, | ||
# expire_after: 60.minutes | ||
Frab::Application.config.session_store :cookie_store, | ||
key: '_frab_session', | ||
secure: Rails.env == 'production', | ||
httponly: true, | ||
expire_after: 60.minutes |