Skip to content

[Web] Fix users not being redirected back to the login page when their session expires#55936

Merged
rudream merged 2 commits intomasterfrom
yassine/fix-login-redirect-on-session-expiry
Jun 26, 2025
Merged

[Web] Fix users not being redirected back to the login page when their session expires#55936
rudream merged 2 commits intomasterfrom
yassine/fix-login-redirect-on-session-expiry

Conversation

@rudream
Copy link
Copy Markdown
Contributor

@rudream rudream commented Jun 20, 2025

Purpose

This PR resolves #50431

This PR fixes an issue where if a user's session expired, they would not automatically be logged out in the UI and taken back to the login page. The user is now redirected to the login page even if the api.delete() call returns an error, which happens if the session is expired/invalid.

Comment thread web/packages/teleport/src/services/websession/websession.ts
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek left a comment

Choose a reason for hiding this comment

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

I tested it locally, works properly now.

@rudream rudream force-pushed the yassine/fix-login-redirect-on-session-expiry branch from d352d79 to 968931d Compare June 24, 2025 17:52
@rudream rudream requested a review from zmb3 June 24, 2025 17:53
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa left a comment

Choose a reason for hiding this comment

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

with minor comments

Comment thread .github/ISSUE_TEMPLATE/webtestplan.md
Comment thread web/packages/teleport/src/services/websession/websession.test.ts Outdated
@rudream rudream requested a review from kimlisa June 26, 2025 19:30
@rudream rudream added this pull request to the merge queue Jun 26, 2025
Merged via the queue into master with commit fdf820b Jun 26, 2025
42 checks passed
@rudream rudream deleted the yassine/fix-login-redirect-on-session-expiry branch June 26, 2025 20:32
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@rudream See the table below for backport results.

Branch Result
branch/v16 Failed
branch/v17 Create PR
branch/v18 Create PR

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

Labels

backport/branch/v17 backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web UI does not log out the user automatically after the session expires

4 participants