Menu callback, stores a value in $_SESSION['session_test_value'] without having started the session in advance.
function _session_test_set_not_started() {
if (!drupal_session_will_start()) {
$_SESSION['session_test_value'] = t('Session was not started');
}
}