(no title)
abimaelmartell | 9 years ago
cookies({ token: '42' }, {
expires: 100 * 24 * 3600, // The time to expire in seconds
domain: false, // The domain for the cookie
path: '/', // The path for the cookie
secure: https ? true : false // Require the use of https
});
SamBam|9 years ago
This is the standard, modern way of added options to a function.
niftich|9 years ago
I actually quite like it because you can manipulate each portion of the string separetely, vs.