Module: Sorcery::Controller::Submodules::SessionTimeout::InstanceMethods
- Defined in:
- lib/sorcery/controller/submodules/session_timeout.rb
Instance Method Summary collapse
Instance Method Details
#invalidate_active_sessions! ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/sorcery/controller/submodules/session_timeout.rb', line 34 def invalidate_active_sessions! return unless Config.session_timeout_invalidate_active_sessions_enabled return unless current_user.present? current_user.send(:invalidate_sessions_before=, Time.now.in_time_zone) current_user.save end |