jquery-cookie

Is using the jQuery Cookie plugin a valid way of testing to see if cookies are enabled?

I have a site that we require the user to have enabled JavaScript and cookies before they can login to the site. (The JS part is done and works perfectly.) At the moment, we have been been setting a cookie and then redirect the user to another page (in PHP). This has worked fine, but now we have a bunch of people that have bookmarked the...

Check if cookie exists if not create it.

TLDR: Want to check if cookie exists, if it doesn't create it. Am using jquery1.4.2 and jquery cookie, I know this is probably very simple but I just cant get my head right at the moment. I want to: Check to see if a cookie with name of "query" exists If so nothing. If not create a cookie "query" with a value of 1. But only if i...

JQuery cookie extension will set a cookie with a path but will not read it

First, set a cookie: jQuery.cookie('monster', 'big', { path : '/sesame/'}); Next, try to read it: jQuery.cookie('monster'); Firefox tells me that the cookie has indeed been set. The value is big and the path is /sesame/. And yet when I tried to read the cookie it wouldn't work. Alternate version of the question: How do I specify t...