$session = JFactory::getSession();
$session->set('name', 'John');
$name = $session->get('name');
if($session->has('name')){ // do something }In terms of package library, JFactory session is a part of the Joomla framework, which is open-source and free to use.