Content deleted Content added
Mike Dillon (talk | contribs) No edit summary |
Mike Dillon (talk | contribs) name cookie names for reading case insensitive per RFC |
||
Line 2:
function readCookie(name) {
var nameMatch = name.toLowerCase() + "=";
var cookies = document.cookie.split(";");
for (var i in cookies) {
if (cookies[i].toLowerCase().indexOf(nameMatch) == 0) {
return cookies[i].substr(nameMatch.length);
}
|