@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
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| How to fully logout user session plus clear oauth data | 0 | 1060 | 2023 年4 月 20 日 | |
| Is Discourse supposed to log you out across browsers? | 9 | 1932 | 2015 年9 月 21 日 | |
| How to log out user if I don't know them? | 6 | 1286 | 2020 年3 月 26 日 | |
| A question about user_auth_tokens | 4 | 1100 | 2017 年3 月 16 日 | |
| WordPress log out everywhere doesn't log out discourse | 5 | 1036 | 2020 年6 月 24 日 |