You are here

function devel_session in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \devel_session()
  2. 7 devel.pages.inc \devel_session()

Menu callback: display the session.

1 string reference to 'devel_session'
devel_menu in ./devel.module
Implementation of hook_menu().

File

./devel.module, line 1454

Code

function devel_session() {
  global $user;
  $output = kprint_r($_SESSION, TRUE);
  $headers = array(
    t('Session name'),
    t('Session ID'),
  );
  $output .= theme('table', $headers, array(
    array(
      session_name(),
      session_id(),
    ),
  ));
  return $output;
}