Joomla set state
$app =& JFactory::getApplication(); $app->setUserState( "com_test.returnid", $this->item->id );