Session API functions
Last updated on
30 April 2025
- 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:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion