Title: Issue with validity infinity
Last modified: March 5, 2018

---

# Issue with validity infinity

 *  Resolved [Leitner](https://wordpress.org/support/users/leitner/)
 * (@leitner)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/issue-with-validity-infinity/)
 * Hi,
 * If I set the validity to infinity the expiration date of the cookie “cookie_notice_accepted”
   is set to 1969-12-31T23:59:59.000Z (Chrome) or “End of Session” (Firefox).
    All
   other times works perfect.
 * I’m running PHP 5.6.33.
 * Is this a bug?
 * Regards
    Patrick
 * PS: i see that you use toGMTString (front.js – Line 37). This feature is deprecated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/issue-with-validity-infinity/#post-10048866)
 * Thanks Patrick.
    We’ll check that and adjust the code if required.
 *  Thread Starter [Leitner](https://wordpress.org/support/users/leitner/)
 * (@leitner)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/issue-with-validity-infinity/#post-10081113)
 * [@dfactory](https://wordpress.org/support/users/dfactory/):
 * is there any new information available?
 * Regards
    Patrick
 *  Thread Starter [Leitner](https://wordpress.org/support/users/leitner/)
 * (@leitner)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/issue-with-validity-infinity/#post-10152384)
 * Thanks for fixing!
 * Regards
    Patrick

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with validity infinity’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Leitner](https://wordpress.org/support/users/leitner/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/issue-with-validity-infinity/#post-10152384)
 * Status: resolved