Changed onweb method to use portalEndpoints.
Combined Session_File into the Config_File (automatically writes parts of it)