How would I detect if the website has set a cookie in general without checking lots of individual cookies.
I looked at this similar question: Create a cookie if (and only if) it doesn't already exist. But the solutions provided there check if a specific cookie exist, not just cookies in general.
I have tried:
if($.cookie) {
//code
}
jQuery really isn’t necessary to check if the current domain has set a cookie in the user’s browser, just use raw JS: