I have this:
if (typeof options.expires == \'number\') { date = new Date(); date.setTime(date.getTime() + (options.expires * 5 * 1000)); } else { date = opti
10 minutes is 10 * 60 * 1000 milliseconds.
var date = new Date(); date.setTime(date.getTime() + (10 * 60 * 1000)); $.cookie("example", "foo", { expires: date });