Confusion regarding mbox Cookie Duration | Community
Skip to main content
October 14, 2024
Solved

Confusion regarding mbox Cookie Duration

  • October 14, 2024
  • 2 replies
  • 1060 views

I am reviewing the available documentation to determine the duration of the mbox cookie. There appears to be conflicting information, as some references cite a duration of 2 years while others mention only 2 weeks.

 

Cookie Duration: 2 years

https://experienceleague.adobe.com/en/docs/core-services/interface/data-collection/cookies/target

https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/atjs-cookies#cookie-settings

https://experienceleague.adobe.com/en/docs/core-services/interface/data-collection/cookies/web-sdk

 

Cookie Duration: 2 weeks

https://experienceleague.adobe.com/en/docs/target-dev/developer/implementation/privacy/cookie-behavior#cookie-settings

 

Which option is accurate? Additionally, if the duration is indeed 2 years, is there a way/setting to minimize it to 6 months or a shorter duration?

 

Please let me know. Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kandersen-1

Hi @prabhatsharma 

 

The correct duration is 2 years and AFAIK it is not possible to change the duration of the cookie. 

Kind regards,

Kasper

2 replies

kandersen-1
Community Advisor
kandersen-1Community AdvisorAccepted solution
Community Advisor
October 14, 2024

Hi @prabhatsharma 

 

The correct duration is 2 years and AFAIK it is not possible to change the duration of the cookie. 

Kind regards,

Kasper

Test forum signature
SSampsa
Level 4
October 14, 2024

The default should indeed be 2 years, I think there has been a small slipup defining 2 weeks for lifetime.

 

As the document describes, there is no way to change this without e.g. a separate script that adjusts the lifetime (note that Target script will restore it to 2 years when run). 

 

I'm curious: Is there a specific reason for this other than privacy/consent?

October 15, 2024

Hi @ssampsa 

 

Yes, we have some restrictions due to GDPR. That's why I am looking for a way to reduce the cookie duration.

 

Thanks,

Prabhat

SSampsa
Level 4
October 17, 2024

In that case the only option is to use an external piece of script that rewrites the cookie duration after Target has run. These solutions work, but need special care as Target overrides the duration whenever it runs.