Clarification about session_timeout. #264
Labels
question
Asking a question about Sorcery
to be implemented in v1
This issue or pull request will be resolved in the v1 rework, but has not yet been completed.
Configuration
sorcery 0.15.0
ruby 2.7.2
Rails 6.0.3.4
ubuntu 18 LTS
Expected Behavior
When i use the session_timeout module i expect it to reset the session only for users who are logged in.
Actual Behavior
All sessions are being reset weather the user is logged in or not.
I took a look at the code in
session_timeout.rb
I would expect something like
if (session_to_use && sorcery_session_expired?(session_to_use.to_time)) && user.present?
What am i missing? Is my understanding of the session_timeout wrong? Can someone clarify the behaviour for me?
Thanks in advance!
The text was updated successfully, but these errors were encountered: