In SuiteCommerce Advanced, how can I force to refr...
# ask-stanley-ai
m
In SuiteCommerce Advanced, how can I force to refresh the cookies that users have in their browsers ? I have already invalidated cache directly in Netsuite
c
AI generated answer (using internal Slack threads):
In SuiteCommerce Advanced, you cannot directly force a refresh of the cookies that users have in their browsers from the server side. Cookies are stored on the client side (user's browser), and their management is typically handled by the client, not the server. However, you can set the 'expires' attribute of the cookies to a past date, which will cause the browser to delete the cookie. This can be done using JavaScript on the client side. Here is a sample code snippet:
Copy code
javascript
document.cookie = "cookieName=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
This code will set the 'expires' attribute of the 'cookieName' cookie to a past date (01 Jan 1970), which will cause the browser to delete the cookie. You would need to run this code for each cookie that you want to delete. Please note that this will only affect the cookies of the users who load the page after you have made this change. Users who have already loaded the page and have the cookies set will not be affected until they reload the page. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813537717
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806213558
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804992676
Please provide your feedback on this answer.