|
|
Another maybe...
function countCookies() { return document.cookie.split(";").length; }
|
|
|
|
|
Moose, your code is one cookie short, and Aaron, yours works. Are you sure it's one cookie short? It's always worked for me. Sadly, though it looks like I have a bad habit of over complicating codes.
|
Greg says: Coding music... Greg says: Hmm... Greg says: I wouldn't rule it out. Chris 3.0 [New features? Yes.] says:
Greg says: If you think about machine code it's a bunch of 1s and 0s Chris 3.0 [New features? Yes.] says: Anything is possible. Greg says: Yeah try to code Metallica Chris 3.0 [New features? Yes.] says: Yeah, I'll get right on that... right after I learn to fly.
|
|
|
|
Moose, may be it's because you don't check if ends with ; in the cookie? *shrugs*
|
|
|
|
|
Moose, may be it's because you don't check if ends with ; in the cookie? *shrugs* Well I am pretty sure cookies aren't allowed to have ; in them. I am not having the same problem as Mithras though my return script returns the correct amount of cookies to me and I have counted them in cookie information.
|
Greg says: Coding music... Greg says: Hmm... Greg says: I wouldn't rule it out. Chris 3.0 [New features? Yes.] says:
Greg says: If you think about machine code it's a bunch of 1s and 0s Chris 3.0 [New features? Yes.] says: Anything is possible. Greg says: Yeah try to code Metallica Chris 3.0 [New features? Yes.] says: Yeah, I'll get right on that... right after I learn to fly.
|
|
|
|