A custom session, used when remote PHP scripts access the servlet.In this case only the session object is available, the HttpServletRequest, HttpServletResponse and ServletContext
objects are set to null.
reset loader to the loader to its initial state, clear the VM cache and set a new ThreadContextClassLoader
This is only called by the API function "java_reset()", used only for tests.