You are here

function saml_sp_cron in SAML Service Provider 7.3

Same name and namespace in other branches
  1. 7.2 saml_sp.module \saml_sp_cron()

Implementa hook_cron().

Removed expired SAML requests.

File

./saml_sp.module, line 893
SAML Service Provider

Code

function saml_sp_cron() {

  // delete all expired requests
  db_delete('saml_sp_requests')
    ->condition('expires', REQUEST_TIME, '<')
    ->execute();
}