Using Joomla Classes

Change $_SESSION for JSession and an URL for JRoute.