function hook_session_api_cleanup

7.x-1.x session_api.api.php hook_session_api_cleanup($outdated_sids)

Allows modules to act upon Session IDs being deleted.


array $outdated_sids: An array with all the expired Session IDs that will be deleted.

2 invocations of hook_session_api_cleanup()
session_api_cron in ./session_api.module
Implements hook_cron().
session_api_settings_form in ./
Session API admin settings form.


./session_api.api.php, line 19
Hooks provided by Session API.


function hook_session_api_cleanup($outdated_sids) {
  // Delete flags associated with outdated sessions.
  db_delete('flagging')->condition('sid', $outdated_sids)->execute();