How To Get A Specified Cookie Path Using Javascript
Is there anyway to get a specified cookie's Path in Javascript , i have a javascript method which will return cookie value based on the name . Is it possible to add filter t
Solution 1:
I think you're looking for cookies.getAll()
, which requires setting up a manifest.webmanifest
file and there's caveats among support issues.
Personally I think localStorage
and/or sessionStorage
are a far better choice... well if keeping one's sanity is an option, otherwise best of luck keeping values fresh across objects reading and writing data.
Post a Comment for "How To Get A Specified Cookie Path Using Javascript"