I'm using this:
{kl_php}
session_start();
echo "Session Variables:";
print_r($_SESSION);
{/kl_php}
But you may be outputting text prior to the php code running. If that is the case, you would put the session_start() somewhere on the page that loads before anything is output.