s.cookieLifetime set expiry date for all Adobe cookies | Community
Skip to main content
Level 2
January 11, 2021
Question

s.cookieLifetime set expiry date for all Adobe cookies

  • January 11, 2021
  • 1 reply
  • 1018 views

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=en#vars

 

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=en#vars

 

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

yuhuisg
Community Advisor
Community Advisor
January 13, 2021

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.