diff --git a/bin/zssServer.sh b/bin/zssServer.sh index 6364cd0df..bc2f108f6 100755 --- a/bin/zssServer.sh +++ b/bin/zssServer.sh @@ -164,15 +164,15 @@ fi if [ -f "$CONFIG_FILE" ]; then if [ "$ZWES_LOG_FILE" = "/dev/null" ]; then - _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 + _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 else - _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 | tee $ZWES_LOG_FILE + _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 | tee $ZWES_LOG_FILE fi else if [ "$ZWES_LOG_FILE" = "/dev/null" ]; then - _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} 2>&1 + _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} 2>&1 else - _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} 2>&1 | tee $ZWES_LOG_FILE + _BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} 2>&1 | tee $ZWES_LOG_FILE fi fi # This program and the accompanying materials are diff --git a/c/zss.c b/c/zss.c index 017cb909f..753dbdb47 100644 --- a/c/zss.c +++ b/c/zss.c @@ -1167,13 +1167,8 @@ static void readAgentAddressAndPort(JsonObject *serverConfig, JsonObject *envCon static char* generateCookieName(JsonObject *envConfig, int port) { int cookieLength=256; char *cookieName = safeMalloc(cookieLength+1, "CookieName"); - char *zoweInstanceId = getenv("ZOWE_INSTANCE"); - char *haInstanceCountStr = getenv("ZWE_HA_INSTANCES_COUNT"); - int haInstanceCount=0; - if (haInstanceCountStr != NULL) { - haInstanceCount = atoi(haInstanceCountStr); - } - if (haInstanceCount > 1 && zoweInstanceId != NULL) { + char *zoweInstanceId = getenv("ZWE_zowe_cookieIdentifier"); + if (zoweInstanceId != NULL) { snprintf(cookieName, cookieLength, "%s.%s", SESSION_TOKEN_COOKIE_NAME, zoweInstanceId); } else { snprintf(cookieName, cookieLength, "%s.%d", SESSION_TOKEN_COOKIE_NAME, port);