UI button missing for Delete-All

Created on 18 July 2023, over 1 year ago
Updated 24 December 2023, about 1 year ago

Problem/Motivation

The UI button for the delete all feature is missing. The direct route and code works.

Steps to reproduce

Install the module on drupal 10

Proposed resolution

add a button to one or more:


Admin Menu -> People -> Delete All Sessions


Admin Menu -> Configuration -> People -> Session Inspector -> Delete All Sessions


Admin Menu -> Drupal -> Delete All Sessions

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States GiantBx

Live updates comments and jobs are added and updated live.
  • Quick fix

    Very small and simple change. Preferred over Quickfix.

Sign in to follow issues

Comments & Activities

  • Issue created by @GiantBx
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom philipnorton42 Cheshire

    Thanks very much for reporting this issue.

    Unfortunately, there is no action that delete's all of the sessions from a site.

    I think the route you are thinking about is "session_inspector.delete_all", but this is designed to delete all _other_ sessions for a single user. Essentially, this will clear out the sessions that is not currently active for a single user.

    I deliberately didn't add functionality to clear out all sessions for all users since this can easily break the user experience. There are also other ways to do this (like truncating the sessions table for example).

    Someone did suggest adding a drush command to clear out sessions (https://drupal.org/project/session_inspector/issues/3337515), but that issue hasn't been integrated.

Production build 0.71.5 2024