Title: Cookie path
Last modified: April 6, 2021

---

# Cookie path

 *  Resolved [czokalapik](https://wordpress.org/support/users/czokalapik/)
 * (@czokalapik)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-path/)
 * Hello, is it possible to set cookie path to ‘/’ when agreeing to notifications?
   
   When user clicks “OK” on a random page, prompt will still appear on other pages.

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

 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-path/#post-14287409)
 * Yes. it is possible, Can you send your website URL?
 *  Thread Starter [czokalapik](https://wordpress.org/support/users/czokalapik/)
 * (@czokalapik)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-path/#post-14289837)
 * Not really because it’s for logged-in users only (company intranet), and I know
   where to change it in the js script in the plugin itself, but it’ll be overwritten
   with a new version (or I can unregister and register a modified js file).
 * Maybe my question should sound more like this: are you planning on adding a filter
   or definition of some kind for modifying the cookie path?
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cookie-path/#post-14301658)
 * we create a GitHub ticket to add a filter in js to overwrite the cookie path 
   and we will share it once it is done. for now, you can change it on your end.
 * You can track the development of this filter on:
    [https://github.com/ahmedkaludi/pwa-for-wp/issues/602](https://github.com/ahmedkaludi/pwa-for-wp/issues/602)
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cookie-path/#post-14379249)
 * We added a filter to change the path of the cookies in our latest update. Can
   you please check it once by updating the plugin and let us know back?
 *  Thread Starter [czokalapik](https://wordpress.org/support/users/czokalapik/)
 * (@czokalapik)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cookie-path/#post-14380721)
 * Works flawlessly, thank you!

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

The topic ‘Cookie path’ is closed to new replies.

 * ![](https://ps.w.org/push-notification/assets/icon-256x256.png?rev=2226732)
 * [Push Notifications for WP - Self Hosted Web Push Notifications](https://wordpress.org/plugins/push-notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/push-notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/push-notification/)
 * [Active Topics](https://wordpress.org/support/plugin/push-notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/push-notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/push-notification/reviews/)

## Tags

 * [cookie](https://wordpress.org/support/topic-tag/cookie/)

 * 5 replies
 * 2 participants
 * Last reply from: [czokalapik](https://wordpress.org/support/users/czokalapik/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/cookie-path/#post-14380721)
 * Status: resolved