How to change cookie validity
To increase or decrease the period of cookie validity in Adobe Campaign, change the value of the two new parameters: permanentCookieValidityDuration
and visitorCookieValidityDuration
.
Description description
Environment
- Adobe Campaign v7
- Adobe Campaign v8
Issue/Symptoms
The cookie validity is long, and it has to be reduced.
Steps to reproduce
- Access a URL that points to the instance you are using. For example, a tracking URL.
- Open your browser’s developer console and go to the tab Application.
- On the left panel displayed, select Cookies and check the expiration date of this site.
Resolution resolution
Starting with versions ACC 7.3.2 and 8.4.1, two new parameters have been added to the serverConf.xml
file, redirection section:
permanentCookieValidityDuration
and visitorCookieValidityDuration
.
By default, these are set up to 33696000 seconds (1 year). One can change the value of these two parameters to reduce or increase the validity period of the cookies.
From the configuration, these parameters have the following definition:
permanentCookieValidityDuration
: Duration of theuuid230
andnllastdelid
cookies validity in seconds, 0 means no cookies Default: 33696000visitorCookieValidityDuration
: Duration of theAMCV_ cookie
validity in seconds, 0 means no cookie Default: 33696000
Cause
In the previous versions, the default cookie validity is of 13 years. This is hardcoded under versions prior to 7.3.2 and 8.4.1.