Skip to content

Old sessions are not deleted when account is deleted #1492

Closed

Description

@mlissner

We let people delete their accounts, but we don't nuke their active sessions when they do so. We should do that. If we don't, there's no way for a user to nuke those sessions.

Activity

  1. self-assigned this
    on Dec 2, 2020
  2. mlissner commented on Dec 2, 2020

    @mlissner
    MemberAuthor

    OK, first things first. I guess I don't care of a session is still active after an account is deleted. If that's the case, it's not like you can do anything. The data for the account is nuked, and if you try to create more data by creating a favorite or something, it'll surely explode.

    What I do think is worth investigating is how to nuke sessions during a password change.

  3. mlissner commented on Dec 2, 2020

    @mlissner
    MemberAuthor

    Actually, it looks like sessions are invalidated with password changes: https://docs.djangoproject.com/en/1.11/topics/auth/default/#session-invalidation-on-password-change. I think I'm done here.

  4. added a commit that references this issue on Dec 3, 2020
    ef4b2e2
  5. mlissner commented on Dec 3, 2020

    @mlissner
    MemberAuthor

    On second thought, changing your password only invalidates sessions if you do it via one of the password change forms. If you do it via the change password method, as we do, you have to explicitly nuke other sessions (there's a command for this, as above). So....I implemented that in #1493.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions