Menu callback: print the current session ID.
function _session_test_id() {
// Set a value in $_SESSION, so that drupal_session_commit() will start
// a session.
$_SESSION['test'] = 'test';
drupal_session_commit();
return 'session_id:' . session_id() . "\n";
}