You are here

function _session_test_set_not_started in Drupal 7

Menu callback, stores a value in $_SESSION['session_test_value'] without having started the session in advance.

1 string reference to '_session_test_set_not_started'
session_test_menu in modules/simpletest/tests/session_test.module
Implements hook_menu().

File

modules/simpletest/tests/session_test.module, line 160

Code

function _session_test_set_not_started() {
  if (!drupal_session_will_start()) {
    $_SESSION['session_test_value'] = t('Session was not started');
  }
}