code: function getTTL() {
  	var ttl;
  
  	if (mage.session) {
  		ttl = mage.session.sessionTTL + 60;	// 1 minute safety margin
  	} else {
  		ttl = DEFAULT_TTL;
  	}
  
  	return ttl;
  }
docs: Returns a TTL for messages based on the session module's expiration time (if available)
  
  @returns {number}  Number of seconds after which messages will be dropped