js/utils.js
function setCookie(cookieName, value, validity, useAppPrefix = true){

    const appPrefix = useAppPrefix ? _getAppPrefix() : '';
    const cookieString = appPrefix + cookieName + '=' + value + ';' + 'expires=' + 
        validity.toUTCString();

    document.cookie = cookieString;


}
function setCookie(cookieName, value, validity, useAppPrefix = true){

    const appPrefix = useAppPrefix ? _getAppPrefix() : '';
    const cookieString = appPrefix + cookieName + '=' + value + ';' + 'expires=' + 
        validity.toUTCString();

    document.cookie = cookieString;


}
function setCookie ( cookieName , value , validity , useAppPrefix = true ) { const appPrefix = useAppPrefix ? _getAppPrefix ( ) : '' ; const cookieString = appPrefix + cookieName + '=' + value + ';' + 'expires=' + validity . toUTCString ( ) ; document . cookie = cookieString ; }
Sets the cookie with the given name, value and validity. Appends appId and version information
in the cookie name automatically
@memberof Utils
@param {string} cookieName name of the cookie
@param {string} value value of the cookie
@param {Date} validity valid till date object
Sets the cookie with the given name value and validity . Appends appId and version information in the cookie name automatically