support useLocalSessionState config, default is true