1

我正在尝试将django sanction集成到我的博客应用程序中(此处为 django newbie),但我似乎无法在登录过程后“注销”用户(使用 Google OAuth2.0)。

整个过程似乎没有痛苦 - 即我能够在我的数据库上获取所有用户详细信息,并且能够访问我的 django 模板上的用户详细信息,但是,当我注销并尝试重新登录时,它似乎记住了我的凭据(饼干?)。我正在尝试从这里注销

ps:我正在本地主机上开发 - 想知道这是否是问题(?)

4

1 回答 1

0

请参见此处:如何在 django 中强制用户注销?

引用:

I don't think there is a sanctioned way to do this in Django yet.

The user id is stored in the session object, but it is encoded. Unfortunately, that means you'll have to iterate through all sessions, decode and compare...
于 2013-02-27T22:24:05.330 回答