archive/v1/util.js
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;
	}
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;
	}
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 ; }
parse the cookie for a session id
parse the cookie for a session id