fix when setCleanSession(true) is invalided

fix when setCleanSession true is invalided ;because setCleanSession() do nothing and getCleanSession() method always return false;