I can't find any way to set/get session data within an article
I understand (I think) the php functions -
$session =& JFactory::getSession();
$value = $session->get('pain'); and
$session->set('pain', $value); but, if I put these inside of <?php ?> tags within an article they are just turned into html strings.