logout issue

99 views
Skip to first unread message

Girish

unread,
Aug 26, 2024, 5:04:42 AM8/26/24
to Keycloak User
hi, after successfully login i want to logout the user for that i stored the userid in session and in click of logout i destroyed it but in keycloak server it is still there not destroyed cause of that when i am clicking in  keycloak with login button it is not asking me email and password it is redirected in the protected route of that. but when i delete the session by keycloak server then it get to logout.

Abhimanyu Manocha

unread,
Aug 26, 2024, 8:01:41 AM8/26/24
to Girish, Keycloak User
On logout from your application , Along with deleting userid in session you have to invoke invalidate session (logout) in keycloak also from your backend application. This will clear keycloak SSO session and eventually you will be prompted to login in keycloak next time.



On Mon, 26 Aug 2024 at 2:34 PM, Girish <girish...@gmail.com> wrote:
hi, after successfully login i want to logout the user for that i stored the userid in session and in click of logout i destroyed it but in keycloak server it is still there not destroyed cause of that when i am clicking in  keycloak with login button it is not asking me email and password it is redirected in the protected route of that. but when i delete the session by keycloak server then it get to logout.

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/c34e3caa-446b-41d7-8a11-b0d3a49947a4n%40googlegroups.com.

Girish

unread,
Aug 26, 2024, 9:03:26 AM8/26/24
to Abhimanyu Manocha, Keycloak User
Thank you for the clarification. 
Reply all
Reply to author
Forward
0 new messages