-
Notifications
You must be signed in to change notification settings - Fork 229
Session Timeout
keekdageek edited this page Jan 31, 2012
·
5 revisions
First add this submodule to sorcery:
# config/initializers/sorcery.rb
Rails.application.config.sorcery.submodules = [:session_timeout]
Session timeout is configurable like this:
# config/initializers/sorcery.rb
Rails.application.config.sorcery.configure do |config|
config.session_timeout = 3600 # This is in seconds. You could also write 1.hour
config.session_timeout_from_last_action = true # session timeout is calculated from the last valid activity. By default this is false.
end
Meta
Using Sorcery
- Activity Logging
- Brute Force Protection
- DataMapper Support
- DelayedJob Integration
- Distinguish login failure reasons
- External
- External---Microsoft-Graph-authentication
- Fetching Currently Active Users
- HTTP Basic Auth
- Integration Testing
- OAuth Landing Page
- Password-less Activation
- Remember Me
- Reset Password
- Routes Constraints
- Session Timeout
- Simple Password Authentication
- Single Table Inheritance Support
- Testing Rails
- User Activation
Contributing to Sorcery