You are here

function devel_session in Devel 7

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

Page callback: Displays the session.

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

File

./devel.pages.inc, line 358
Page callbacks for Devel.

Code

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