Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.

s.cookieLifetime set expiry date for all Adobe cookies

Avatar

Level 2

Hello,

 

In Launch, through custom codes we are using some plug-ins developed by Adobe : 

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/impl-plugins.html?lang...

 

Some of these plug-ins create a cookie on the website, 

For example : we used getValOnce to create cookies that expire by the end of the session

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/getvalonce.html?lang=e...

 

Every time we do this, the cookie created is set to expire one year later (even if we chose that it expires at the end of the session).

This happened to us with many plug-ins : getVisitNum, getVisitStart....

 

We noticed that in our Extension Adobe Analytics in Launch, in the custom code we found this line : 

s.cookieLifetime="31536000";

 

Can the cookieLifetime change expiry date for all cookies created by other Adobe plug-ins?

 

How can we fix this issue?

 

Thank you

 

1 Reply

Avatar

Community Advisor

I believe the cookie expiry times are set like that because the intention of those plug-ins is to remember the value for the user's lifetime, or 31536000 seconds.

E.g. the getVisitNum() is supposed to return a visit number for the user's lifetime, so it shouldn't be reset arbitrarily, e.g. every 3 days.

On the other hand, given the state of cookie handling by modern browsers (Safari!), this is probably a moot discussion.