1 session_test.module session_test_boot()

Implements hook_boot().

File

core/modules/simpletest/tests/session_test.module, line 63

Code

function session_test_boot() {
  // Although set at the top of this module for cached pages, replace this
  // header during hook_boot() in the event that the session has been destroyed.
  header('X-Session-Empty: ' . intval(empty($_SESSION)));

  // Enable HTTPS for this request if set in state.
  // See SessionHttpsTestCase::testHttpsSession().
  if (state_get('session_test_https')) {
    $GLOBALS['settings']['https'] = TRUE;
    backdrop_session_initialize();
  }
}