Here I work with the chrome extension here. I need to set a cookie value by my extension.
I set cookies:
chrome.cookies.set({ url: "http://example.com/", name: "CookieVar", value: "123" });
But it is available in the current browser, when I close the browser data, it has been lost, so I go with
chrome.cookies.set({ url: "http://example.com/", name: "CookieVar", value: "123", expirationDate: 3600 });
But from this, I cannot see the cookie information - this is what I missed here.
thanks for the help
google-chrome google-chrome-extension
Yashwant Kumar Sahu
source share