/* GeSHi (C) 2004 - 2007 Nigel McNie (http://qbnz.com/highlighter) */
.geshifilter {font-family: monospace;}
.geshifilter .imp {font-weight: bold; color: red;}
.geshifilter .kw1 {color: #b1b100;}
.geshifilter .kw2 {color: #000000; font-weight: bold;}
.geshifilter .kw3 {color: #000066;}
.geshifilter .coMULTI {color: #808080; font-style: italic;}
.geshifilter .es0 {color: #000099; font-weight: bold;}
.geshifilter .br0 {color: #66cc66;}
.geshifilter .st0 {color: #ff0000;}
.geshifilter .nu0 {color: #cc66cc;}
.geshifilter .sc0 {color: #00bbdd;}
.geshifilter .sc1 {color: #ddbb00;}
.geshifilter .sc2 {color: #009900;}
<head>
<title>Cookie Demo</title>
<script type="text/javascript"
src="http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js"></script>
<script type="text/javascript">
dojo.require("dojo.cookie");
dojo.addOnLoad(function() {
// Calling dojo.cookie with two parameters sets a cookie
dojo.cookie("online-book.cookie","oatmeal");
// With one parameter, reads the cookie
console.debug("cookie is "+dojo.cookie("online-book.cookie"));
// Third parameter is an object with other cookie options. Here, setting the expires
// property to -1 deletes the cookie
dojo.cookie("online-book.cookie","Value Doesn't matter",{expires: -1});
console.debug("cookie should now be null: "+dojo.cookie("online-book.cookie"));
});
</script>
</head>
Rumor has is that Brad Neuberg calls cookies "Dojo Offline Lite."