Update cookie
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-image-lecoffre (push) Successful in 16s
Demo - Build & Deploy to Scaleway / deploy-to-scaleway-lecoffre (push) Successful in 3s

This commit is contained in:
Omar Oughriss 2025-07-25 17:02:51 +02:00
parent 222f5acc20
commit bb1dea088f

View File

@ -15,7 +15,7 @@ export default class CookieService {
const date = new Date();
// Set it expire in 7 days
date.setTime(date.getTime() + 7 * 24 * 60 * 60 * 1000);
date.setTime(date.getTime() + 3 * 60 * 1000);
// Set it
document.cookie = name + "=" + value + "; expires=" + date.toUTCString() + "; path=/";