Skip to content

UI: Manage Session Timeout #25445

Closed
1 of 2 issues completed
Closed

Description

@deetz99

Current Behaviour

When a user's auth session expires/is about to expire, there is no notification (or similar) displayed. The screen doesn't change until the user attempts an action, form submit/document upload. At that point, the api returns 401 Unauthorized error and the user is redirected to the login screen. Any current form progress will not be saved.

Expected Behaviour

When the session is about to expire, the UI should notify the user that their session is about to expire and give them the option to extend. If no user input within a specified time limit, the UI should save any application progress and sign the user out, redirecting them back to the login screen.

UX/UI Links
Link to Figma

Sub-issues

Sub-issues

1 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    UX
    UI
    on Jan 22, 2025
  2. deetz99 commented on Jan 22, 2025

    @deetz99
    CollaboratorAuthor

    Should we have sub tickets for design and ui work?

  3. self-assigned this
    on Jan 23, 2025
  4. forgeuxGH5 commented on Jan 23, 2025

    @forgeuxGH5
    Collaborator

    Renew session - resets timeout period
    timeout countdown only begins after keyboard, mouse, or touch inactivity
    Button in dialog to continue or any keyboard, mouse or touch action. If the dialog is displayed it must be actioned. OR "press any key to continue your session"
    session expiry warning - warning displayed for xx seconds (TBD see accessibility below)
    autosave before time out
    Display countdown timer in dialog
    Other auto save options - timed
    On page / browser exit

    Warning Dialog
    modal or in page alert (top of page?)
    (accessibility with screenreader?)
    Ensure modal display does not start screenreader at top of page or otherwise ensure timeout is read first, ensure dialog display allows time for screenreader to completely read the dialog content and allows the user with accessibility needs time to interact with the dialog)

    How long should the timeout be:
    Consider people with accessibility needs, vision, cognitive, hearing, motor control
    User Tasks
    Long periods with no input control activity
    Reading a single page with no scrolling
    Retrieving documents
    Phone call - support, client to obtain information
    30 min?

  5. self-assigned this
    on Feb 3, 2025
  6. deetz99 commented on Feb 5, 2025

    @deetz99
    CollaboratorAuthor

    I have this stuff ready for pr, will touch base with Dima tomorrow (Feb 5th) about how to go about this.

  7. jdyck-fw commented on Feb 5, 2025

    @jdyck-fw
    Contributor

    Fair to assume that @dimak1 is taking over on this one for you then @deetz99 ?

  8. assigned and unassigned on Feb 5, 2025
  9. dimak1 commented on Feb 5, 2025

    @dimak1
    Collaborator

    This PR also having build issues.

  10. jdyck-fw commented on Feb 10, 2025

    @jdyck-fw
    Contributor

    @shaangill025 or @kris-daxiom - Can one of you move this forward while Dima is out? Looks like the blocking ticket is now resolved.

  11. deetz99 commented on Feb 11, 2025

    @deetz99
    CollaboratorAuthor

    Updating as Dima is away.

    Ready for review.

    Examiner (temp dev url): 0.0.21
    Host Test: 1.1.6
    Strata Test: 1.1.5
    Platform Test: 1.1.4

  12. andyyanggov commented on Feb 12, 2025

    @andyyanggov

    Looks good to me.

    Screenshot 2025-02-11 at 4.18.21 PM.png

    Screenshot 2025-02-11 at 4.18.37 PM.png

    Screenshot 2025-02-11 at 4.18.28 PM.png

    Screenshot 2025-02-11 at 4.20.24 PM.png

  13. ser-popov commented on Feb 13, 2025

    @ser-popov

    Something weird happening with Safari on Mac OS .. see bcgov/STRR#1412

  14. ser-popov commented on Feb 14, 2025

    @ser-popov

    Will manage the opened defects separately as it only happens for some people but not others .. Done.

  15. mbertucci commented on Feb 18, 2025

    @mbertucci
    Contributor

    @Michaela-R-Anderson Did this work as intended last week?

  16. jdyck-fw commented on Feb 20, 2025

    @jdyck-fw
    Contributor

    Team decided to close this as the timeout issue is very challenging to reproduce and unreliably reproduced, and for a small subset of users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

STRSTR Team DiscussionUIUXblocked

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions