user.logout doesn't delete session entry

Created on 8 August 2019, over 5 years ago
Updated 14 March 2023, almost 2 years ago

I saw an issue about this for D6 but was closed.

When a user logout call is made; the session entry in the table is not deleted. Pretty sure this should occur.

Not a major issue as the entries will eventually expire; but i guess if you have an application where you login/logout a lot; then the session table will get flooded.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada liquidcms

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @voleger opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States tyler.frankenstein

    Thank you, @voleger. I don't think we can use drupal_session_destroy_uid() because it will destroy all the user's sessions.

    For example, if a user logged into the Drupal website on one device, then logged into the Drupal website on another device using the Services API, then logged out using the Services API, their first session on their first device would also get logged out!

Production build 0.71.5 2024