What is cookie duration?

Cookie duration refers to how long a cookie file remains on a user’s device before it expires and is deleted. The duration of a cookie can vary. E.g. session cookies expire as soon as the browser session ends, meaning when the user closes their browser. Short-term cookies may last for minutes or hours. Long-term persistent cookies can have durations of days, weeks, months, or even years.

Regulations like GDPR may require cookie durations limited to only what is essential for its specified purpose.