tiny-cookie.js [899b] - tiny-cookie-min.js.gz [268b]
The t.c-function requires only tiny.js. Other scripts are not necessary.
If the name of a cookie is given as argument to t.c(), its value is returned. If otherwise a Cookie-Object is given as argument, the corresponding Cookie is set.
Das Cookie-Object has the following format:
{
name:[name:String*],
value:[value:String*],
date:[date:Date|Int(ms)],
path:[path:String],
domain:[domain:String],
extra:[extra:String, beginning with "; "]
}
t.c({name:'test', value:'right', date:1000});
t.c('test')==='right'
© 2010 Alex Kloss