Advertising sustains the DA. Ads are hidden for members. Join today

Session API functions

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

session_api_available()
Determine if cookies are enabled.
session_api_get_sid()
Return a Session API ID corresponding to the current session. The Session API ID is the mapping of the private php session_id to the ID used by modules leveraging the Session API.
session_api_session_api_cleanup($op = 'run')
Implementation of hook_session_api_cleanup().

A self implementation of the Session API cleanup hook. Generally called from session_api_cron().

Parameters:
string $op
The operation the function perform.

  • run - perform the cleanup
  • info - provide information(in the form of a keyed array) of the title and description of the cleanup.

Returns:
Varies with $op.

  • run - NULL
  • info - a keyed array containing title and description

Help improve this page

Page status: Not set

You can: