## The problem
Issue logto-io/logto#7511 (closed, 16 comments): ### Describe the bug Docs section:[br][https://docs.logto.io/end-user-flows/sign-out#clear-sign-in-session-at-logto]([https://docs.logto.io/end-user-flows/sign-out#clear-sign-in-session-at-logto]) > To explicitly sign out the user and clear the session at Logto, the client application need to redirect the user to the Logto's end session endpoint. > > E.g. https://{your-logto-domain}/oidc/session/end > > **If a post-logout redirect URI is provided, the user will be redirected to the specified URI after the session is cleared**. Otherwise, the user will be redirected to the default...
## The fix
If post-logout redirect does not work as the Logto docs describe, the end session endpoint needs both query params: redirect to /oidc/session/end?client_id=YOUR_APP_ID&post_logout_redirect_uri=YOUR_REDIRECT_URI. The post_logout_redirect_uri and client_id parameters are both required; logto/react builds exactly this URL on logout. Commenter-verified.
## Notes
Thread: https://github.com/logto-io/logto/issues/7511. Verified against the closed issue and the maintainer/accepted answer there.