rest_cookie_invalid_nonce - Cookie nonce is invalid - WP Simple Pay Documentation
  1. Home
  2. FAQs
  3. Common Problems
  4. rest_cookie_invalid_nonce – Cookie nonce is invalid
  1. Home
  2. FAQs
  3. rest_cookie_invalid_nonce – Cookie nonce is invalid

rest_cookie_invalid_nonce – Cookie nonce is invalid

Sometimes you or your site visitors might experience issues related to caching while using WP Simple Pay. In most cases, this is because your web host has it’s own caching rules in place or you have a caching plugin configured on your site. Both are good things for your site’s overall load times and performance but can block or break some functionality of WP Simple Pay.

If your site visitors see a message similar to Cookie nonce is invalid or rest_cookie_invalid_nonce this means that your site’s nonce tokens are being cached and reused beyond their designated time frame.

WordPress nonces can be used for 12 hours before they become invalid. To avoid expired nonces from being sent to WP Simple Pay you must ensure pages with WP Simple Pay forms are not cached, or not cached for longer than 12 hours.

For more information see our general article on caching.

Updated on November 17, 2020

Was this article helpful?

Related Articles