You are here

function httprl_call_exit in HTTP Parallel Request & Threading Library 7

Same name and namespace in other branches
  1. 6 httprl.module \httprl_call_exit()

Performs end-of-request tasks and/or call exit directly.

2 calls to httprl_call_exit()
httprl_async_page in ./httprl.async.inc
Menu Callback; run given function.
httprl_fast403 in ./httprl.module
Send out a fast 403 and exit.

File

./httprl.module, line 3330
HTTP Parallel Request Library module.

Code

function httprl_call_exit() {
  if (defined('VERSION') && substr(VERSION, 0, 1) >= 7 && drupal_get_bootstrap_phase() == DRUPAL_BOOTSTRAP_FULL) {

    // Do not write the session.
    drupal_save_session(FALSE);
    drupal_exit();
  }
  else {
    session_save_session(FALSE);
    exit;
  }
}