javascript - $.cookie not returning all cookies -
i have cookies list
key value domain expiry http usid 1234567 abc.domain.com 2014-12-01t23:54:12.256z yes ssid 1234534 abc.domain.com 2014-12-01t23:54:12.256z yes _ga ga1.1.323232323 domain.com 2014-12-01t23:54:12.256z no
when utilize $.cookie cookies output is
object _ga: "ga1.1.323232323" lang: "en"
also document.cookie returns same result how can cookies present
i believe dealing httponly cookies, cannot retrived through javascript. accessible cookies should returned document.cookie
.
if have command on server-side, create sure httponly
alternative not utilize these if want them accessible on client.
it's possible abc.domain.com cookies aren't returned because that's not same domain domain.com - pointy
javascript jquery cookies
No comments:
Post a Comment