function _session_test_set_not_started

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');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.