Set tracking prompt cookie age to 365days instead of a session cookie (#2266)

This commit is contained in:
Taran Vohra
2024-04-04 14:39:27 +05:30
committed by GitHub
parent 36600bc0c7
commit 07085a5b89
+3 -1
View File
@@ -69,7 +69,9 @@ async function fetchVisitorID(): Promise<string> {
* Accept or reject cookies.
*/
export function setCookiesTracking(enabled: boolean) {
cookies.set(GRANTED_COOKIE, enabled ? 'yes' : 'no');
cookies.set(GRANTED_COOKIE, enabled ? 'yes' : 'no', {
expires: 365,
});
}
/**