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
BedrockMission!

Learn More

View all

Sign in to view all badges

s.cookieLifetime set expiry date for all Adobe cookies

Avatar

Avatar
Validate 1
Level 1
prahme
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
prahme
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
prahme
Level 1

11-01-2021

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

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

195 likes

Total Posts

592 posts

Correct Reply

117 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

195 likes

Total Posts

592 posts

Correct Reply

117 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile
yuhuisg
MVP

13-01-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.