Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

s.cookieLifetime set expiry date for all Adobe cookies

Level 2
Level 2



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


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


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 : 



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
Community Advisor
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.