1 session_test.module _session_test_id()

Menu callback: print the current session ID.

File

core/modules/simpletest/tests/session_test.module, line 109

Code

function _session_test_id() {
  // Set a value in $_SESSION, so that backdrop_session_commit() will start
  // a session.
  $_SESSION['test'] = 'test';

  backdrop_session_commit();

  return 'session_id:' . session_id() . "\n";
}