@sam thanks for your quick reply. I do not want log out strict. It logs the user out of every session on every device, I just want to log the user out on the current device. I am logging the user out of Discourse as part of my own site’s logout flow. Discourse is a subdomain of my domain, so my endpoint gets its cookies. My question is if it is good practice to simply set the user’s token cookie to empty myself without ever talking to discourse, which judging from the code you provided seems to be the case. Please correct me if that’s wrong, otherwise, thanks for your help!
Kevin_Wildenradt
(Kevin Wildenradt)
3
Sujets connexes
| Sujet | Réponses | Vues | Activité | |
|---|---|---|---|---|
| How to fully logout user session plus clear oauth data | 0 | 1060 | Avril 20, 2023 | |
| Is Discourse supposed to log you out across browsers? | 9 | 1932 | Septembre 21, 2015 | |
| How to log out user if I don't know them? | 6 | 1286 | Mars 26, 2020 | |
| A question about user_auth_tokens | 4 | 1100 | Mars 16, 2017 | |
| WordPress log out everywhere doesn't log out discourse | 5 | 1036 | Juin 24, 2020 |