lib/cookies.js
function(name, value, options) {
    var cookie = typeof options == 'object'
        ? {value: value, expires: options.expires, secure: options.secure || false, new: options.new || false}
        : {value: value}
    if (this.checkNotExpired(name, cookie)) {
      this.cookies[name] = cookie
    }
  }
function(name, value, options) {
    var cookie = typeof options == 'object'
        ? {value: value, expires: options.expires, secure: options.secure || false, new: options.new || false}
        : {value: value}
    if (this.checkNotExpired(name, cookie)) {
      this.cookies[name] = cookie
    }
  }
function ( name , value , options ) { var cookie = typeof options == 'object' ? { value : value , expires : options . expires , secure : options . secure || false , new : options . new || false } : { value : value } if ( this . checkNotExpired ( name , cookie ) ) { this . cookies [ name ] = cookie } }
Sets cookie's value and optional options
@param {String} name cookie's name
@param {String} value value
@param {Object} options with the following fields:
- {Boolean} secure - is cookie secure or not (does not mean anything for now)
- {Date} expires - cookie's expiration date. If specified then cookie will disappear after that date
Sets cookie s value and optional options