code: function getSessionId(cookie) {
  		if (typeof(cookie.cookies) === 'string') {
  			var idx = cookie.cookies.indexOf('=');
  			if (idx !== -1) {
  				return _.trim(cookie.cookies.substring(idx + 1), '"') || null;
  			}
  		}
  		return null;
  	}
docs: parse the cookie for a session id