Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 15, 2013 08:48 PM by elmoWatson
Jan 09, 2013 07:04 PM|LINK
I'm using the cookie JQuery plugin - - the way it tells your to use it in order to read a cookie is:
var isApprover = $.cookie("isApprover");
However my cookies are 2 part cookies:
I know I could go back through all my code and change the names, but I really don't want to do that, at this point. with this way, I can set all the userSettings to expire at once. I've tried it with square brackets (like above), including both parts and
only the identifying part, and it always shows as null
What's the syntax to read these kinds of cookies?
Jan 09, 2013 10:18 PM|LINK
there are no two part cookie names. in the http header its
Jan 10, 2013 01:28 PM|LINK
In that case, how do I iterate through the subkey values of 'userSettings' and check to see the value of 'isApprover'?
Jan 15, 2013 08:48 PM|LINK
never mind - I just used:
if (document.cookie.indexOf("isApprover=True") < 0)