mantis #178
restore the connection to the joomla site and fixed the session data