# The best solution to logout from keycloak session

**URL:** <https://forum.keycloak.org/t/the-best-solution-to-logout-from-keycloak-session/17318>\
**Category:** Securing applications\
**Tags:** authentication\
**Created:** [September 9, 2022, 9:52am UTC](https://forum.keycloak.org/t/the-best-solution-to-logout-from-keycloak-session/17318 "2022-09-09T09:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aicha](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Aicha](https://forum.keycloak.org/u/Aicha)\
**Post date:** [September 9, 2022, 9:52am UTC](https://forum.keycloak.org/t/the-best-solution-to-logout-from-keycloak-session/17318/1 "2022-09-09T09:52:32Z")

</div>

What’is the best way to logout from your keycloak application  
is to use :

Get realms/{realm-name}/protocol/openid-connect/logout?redirect\_uri  
or execute a http request to delete your session :  
Delete {realm}/sessions/{session}
