mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
Persistent cookies are set with expiration dates by Law Every 12 months.
This commit is contained in:
parent
869e0b1d13
commit
aa4503844d
@ -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 });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user