From aa4503844d1dc9c18c76b8f0105f2fad2da349bf Mon Sep 17 00:00:00 2001 From: Alejandro Labrada Diaz Date: Wed, 6 Jun 2018 16:58:23 -0400 Subject: [PATCH] Persistent cookies are set with expiration dates by Law Every 12 months. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c74a6c4..c7c43c4 100644 --- a/src/index.js +++ b/src/index.js @@ -58,7 +58,7 @@ class CookieConsent extends Component { accept() { const { cookieName } = this.props; - Cookies.set(cookieName, true); + Cookies.set(cookieName, true, { expires: 365 }); this.setState({ visible: false }); }