Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout Dialog: allow users to set a different URL for timeouts than manual sign outs #93

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

gunjam
Copy link
Contributor

@gunjam gunjam commented Sep 10, 2020

Hi,

This pull request will allow users of the Timeout Dialog to set different url to redirect to on timeout than the URL for clicking the delete data / sign out link.

It should be none breaking, as if you don't set a timeout-url it will default to the sign-out-url, retaining the original functionality.

Use case

Session timeouts are handled internally in our framework, so if you request a page after your session is timed out you are redirected to /session-timeout with a referrer querystring containing the URL of the page you requested (we use this in GA to see which pages people time out on).

Using this component I have to redirect to a /end-session URL to clear the session to makes the link work, but I lose the benefit of the querystring on the session timeout page. This is because it will also redirect to /end-session, then redirect to session-timeout with /end-session as the referrer.

Another issue is that since both the timeout and link will focibly kill the session, if the session is being refreshed in a separate tab, the fogotten tab will eventually timeout and kill a session for a user that wouldn't have otherwise reached it's expiry time.

However, if I set the timeout URL to redirect to the page it's on the session timeout middleware will kick in showing a timeout page with the approrpriate referrer URL and if the session is being maintained in another tab the page will just refresh every 30 minutes and not kill an active session. The sign out link however can continue to point to a URL that will forcibly end the session.

@ghost
Copy link

ghost commented Sep 10, 2020

Can one of the admins verify this patch?


- issue where internal header where font wasn't being set
- `hmrcTimeoutDialog` Allow users to set a different URL for timeouts than manual sign outs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be replacing the previous release rather than adding a new one, can you

## [Unreleased]

## [1.16.0] - 2020-09-10

### Changed

- `hmrcTimeoutDialog` Allow users to set a different URL for timeouts than manual sign outs

## [1.15.3] - 2020-08-14

### Fixed

- issue where internal header where font wasn't being set

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Should be fixed now.

timsb
timsb previously approved these changes Sep 11, 2020
@matthewmascord matthewmascord merged commit fa216fa into hmrc:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants