You are here

function _session_test_set_not_started in SimpleTest 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 tests/session_test.module
Implement hook_menu().

File

tests/session_test.module, line 128

Code

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