andreasonny83 / angular2-cookie-law

Angular2+ component that provides a banner to inform users about cookie law
https://stackblitz.com/edit/angular2-cookie-law
MIT License
37 stars 24 forks source link

expiration to 30 days but expired in less days #51

Open ilprima opened 4 years ago

ilprima commented 4 years ago

Hi, i set expiration to 30 days but seems like the cookie bars is shown before. How can i set the expiration to until cookies are deleted?

<cookie-law *ngIf="GlobalFields.isBrowser" name="cookieLawSeenRoomless" expiration="30"> Questo sito utilizza cookies per migliorare la tua esperienza. Accetta se sei d'accordo con il loro utilizzo. <a [routerLink]="'/privacy-policy'" title="Privacy Policy">Privacy Policy</a> </cookie-law>

Thank you

andreasonny83 commented 4 years ago

I think you can safely set the expiration date to 365 days