function session_api_test_init in Session API 7
Implementation of hook_init().
File
- tests/
session_api_test.module, line 26 - Helper module for Session API tests.
Code
function session_api_test_init() {
$sid = session_api_get_sid();
header('X-Session-Api-Sid: ' . $sid);
$session_id = db_query("SELECT session_id FROM {session_api} WHERE sid = :sid", array(
':sid' => $sid,
))
->fetchField();
header('X-Session-Api-Session-Id: ' . $session_id);
}