Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Anonymous session Toolkit

No security coverage Maintenance fixes only 54 sites

This module ensures that anonymous users have a reliable session available for features that depend on session data. It provides a service that can be called to initialize an anonymous session before it's used.

Add a consistent way to the website to ensure a session for anonymous users for reliable session related functionality.

Include the service in your application where the session is important, and call the 'apply' method before using the session

  $anonymousSession = \Drupal::service('anonymoussession');
  $anonymousSession->apply();

  // Use session variables:
  //$_SESSION[...]

Use cases include:

  • PrivateTempStore
  • Functionality that depends on Drupal::currentRequest()->getSession()
Drupal 8–11

Ask your assistant about Anonymous session Toolkit

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
Jan 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.3 Stable 8–11 Mar 24, 2025
1.0.2 Stable 8–10 Jan 18, 2024