Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JavaScript: Get Cookie By Name
@thavelick
Copy link

thavelick commented Oct 14, 2016

Looks like this came from: http://stackoverflow.com/a/15724300/30529

Might be useful for others to see the explanation there of how it works

@jesuscampos
Copy link

jesuscampos commented Apr 6, 2017

It doesn't work if you have only one cookie in document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment