Title: Issue with cookie
Last modified: November 12, 2024

---

# Issue with cookie

 *  Resolved [ahmedibrahimgaber](https://wordpress.org/support/users/ahmedibrahimgaber/)
 * (@ahmedibrahimgaber)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-cookie/)
 * Hi,
   I enabled the page cache but this caused an issue with logic depending on
   a cookie, in my site based on a cookie when the user visits the home if the cookie
   does not exist the user is redirected to a landing page, when the page cache 
   is enabled now the logic always see any user has the cookie, is there a solution
   otherwise to exclude this cookie because this will cause to prevent the page 
   cache.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-cookie/#post-18129978)
 * Hello [@ahmedibrahimgaber](https://wordpress.org/support/users/ahmedibrahimgaber/)
 * Thank you for reaching out and I am happy to help!
   There are few ways to approach
   this. The first one is to add the cookie to the Performance>Page Cache>Advanced
   >Rejected cookies: field. This, however, will disable the Page Caching if the
   cookie is present.The other way is to use Cookie groups in Performance>Cache 
   Groups. There you can creat a group of Cookies by specifying names in the Cookies
   field. Assign a set of Cookies to ensure that a unique cache is created for each
   Cookie group.
 * I hope this helps!
   Thanks!

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-cookie/#post-18129978)
 * Status: resolved