Need help - How to set cookieLifetime value to None for ECID
Hi Team,
I have to set the cookieLifetime value of the ECID extension to None in order not to create ECID cookies(AMCV and AMCVS) under certain conditions.
When I try to configure it directly on the extension, it works fine and the ECID cookies are not created and tags are being sent.

As per my need, I need to set/unset the ECID Cookies based on some conditions. So, I tried to add it using the below code.
var visitor = Visitor.getInstance ("<ORG_ID>",{
trackingServer: "<tracking_server>",
trackingServerSecure: "<tracking_server_secure>",
disableThirdPartyCookies: true,
doesOptInApply: false,
cookieLifetime: "NONE" // This value is set as default when ECID cookies need to be created.
});
Also, I am trying to execute the code after OptIn change:
adobe.optIn.approveAll();
adobe.optIn.complete();
This way, it doesn't work and ECID cookies are getting created irrespective of the condition. Please suggest a better way to implement it OR any other pointers would be helpful!