Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cookieCheck(cookie)
- {
- var cookies = document.cookie.split(";");
- var name;
- var value;
- for (i=0; i < cookies.length; i++)
- {
- name = cookies[i].substr(0, cookies[i].indexOf("="));
- //value = (cookies[i].substr(cookies[i].indexOf("=")+1, cookies[i].length)).replace("+", " ");
- if (name == cookie)
- {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement