Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: GoogleTag Manager 2.0.5 Minor update available for module gtm (2.0.5). Release: GoogleTag Manager 2.0.4 Minor update available for module gtm (2.0.4). Release: X-Frame-Options Allow-From webvisor.com 2.0.4 Minor update available for module xframe_allow_webvisor (2.0.4). Release: Commerce ML Starter 2.0.5 Minor update available for module cmlstarter (2.0.5). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Security Coverage: Menu Link By Default Module menu_link_by_default now has official Drupal security advisory coverage.

User Logout Token

58 sites No security coverage Drupal 10–11
View on drupal.org

This module adds an endpoint to retrieve a user's logout token at any time during their session. This helps in scenarios like password resets where the logout token might change, ensuring secure logout functionality.

The Logout Token module enhances Drupal core by providing an endpoint that allows developers to obtain the logout token during the initial user login through the user login endpoint. Unlike the core behavior, this module ensures that developers can retrieve the logout token at any time during the user session. This capability becomes particularly useful in scenarios where users reset their passwords but are unable to log out due to the logout token being regenerated alongside it. In such cases, the module's endpoint becomes a valuable tool for obtaining the user's logout token and handling secure logout operations effectively.

Key Features

  • Provides an endpoint to fetch the logout token during user sessions.
  • Compatible with Drupal 8, 9, and 10.
  • Enhances security by enabling secure logout handling.

Installation

Follow the standard installation procedure

How to use

Once the module is enabled, simply use the following endpoint to obtain the logout token:
/session/logout/token

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Mar 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.1 Stable 10–11 Mar 18, 2026
2.0.0 Stable 10–11 Mar 18, 2026