Skip to content

Commit d34eaa6

Browse files
committed
Add readme for secure_session_only option
1 parent 9fb5b06 commit d34eaa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ been updated in the last 30 days. The 30 days cutoff can be changed using the
3838
Configuration
3939
--------------
4040

41+
Disable fallback to use insecure session by providing the option `secure_session_only`
42+
when setting up the session store.
43+
```ruby
44+
Rails.application.config.session_store :active_record_store, :key => '_my_app_session', :secure_session_only => true
45+
```
46+
4147
The default assumes a `sessions` table with columns:
4248

4349
* `id` (numeric primary key),

0 commit comments

Comments
 (0)