Hello I need to destroy javascript cookies on a page refresh. I need to set a new bunch of cookies on every page load which help me render the web page based on user options. Is there a method to destroy cookies on a page refresh??
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
May be you could remove cookies on page unload.
For example, with jQuery:
You need to detect the page refresh, have a look at:
Detecting Page Refreshes :: Using JavaScript on Client-Side
Once you know that, you should be able to delete the cookies.