Skip to main content
All CollectionsCookie banner 🍪Configuration
How to customize the consents duration ?

How to customize the consents duration ?

M
Written by Manon Manso
Updated over a week ago

By default, the consent remains valid for 12 months.

It is possible to change this value by adding the userCookiesDuration property to the axeptioSettings object in our script.

When the script is loaded, our SDK will check if an axeptioSettings object has been previously declared. If this is the case, it will draw its parameters from it:

window.axeptioSettings = {
userCookiesDuration: 6*30
}
Did this answer your question?