_session_test_set_not_started

7 session_test.module _session_test_set_not_started()
8 session_test.module _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'

File

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

Code

function _session_test_set_not_started() {
  if (!drupal_session_will_start()) {
    $_SESSION['session_test_value'] = t('Session was not started');
  }
}
Login or register to post comments