Session timeout adjustments - try to address sleep behavior #2786
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Related to #2719 we know we have an issue where when the computer is asleep, the idle timer won't fire (this is an open issue on the repository). We handle this by hitting
refreshSession
as soon as computer is active acgain, then forcing logout.Current state: The logout is happening correctly but the timeout banner is not appearing on the landing page in deployed environments when the feature flag is set to 30 (it seems to work when feature flag is set to 2 minutes - which is what we were testing with before). It does logout, just looks like a normal logout and we want a banner there.
Expected state: The logout still happens correctly and the timeout banner also appears on landing page after computer sleep.
Other fixes: Also fixed the signout bug with this PR, when you manually click singout, no banner should show
Related issues
https://jiraent.cms.gov/browse/MCR-3860
Screenshots
Test cases covered
No new tests.
QA guidance