@@ -228,6 +228,7 @@ public class PXContext {
228228 private String additionalRiskInfo ;
229229 private String servletPath ;
230230 private String pxhdDomain ;
231+ private String pxCtsCookie ;
231232 private long enforcerStartTime ;
232233
233234 /**
@@ -397,7 +398,7 @@ private void parseCookies(HttpServletRequest request, boolean isMobileToken) {
397398 .map (request ::getHeader )
398399 .toArray (String []::new );
399400 this .requestCookieNames = CookieNamesExtractor .extractCookieNames (cookies );
400- setVidAndPxhd (cookies );
401+ setVidPxhdAndPxcts (cookies );
401402 tokens .addAll (headerParser .createRawCookieDataList (cookieHeaders ));
402403 this .tokens = tokens ;
403404 DataEnrichmentCookie deCookie = headerParser .getRawDataEnrichmentCookie (this .tokens , cookieKeysToCheck (this , this .pxConfiguration ));
@@ -406,7 +407,7 @@ private void parseCookies(HttpServletRequest request, boolean isMobileToken) {
406407 }
407408 }
408409
409- private void setVidAndPxhd (Cookie [] cookies ) {
410+ private void setVidPxhdAndPxcts (Cookie [] cookies ) {
410411 if (cookies != null ) {
411412 for (Cookie cookie : cookies ) {
412413 if (cookie .getName ().equals ("_pxvid" ) || cookie .getName ().equals ("pxvid" )) {
@@ -425,6 +426,9 @@ private void setVidAndPxhd(Cookie[] cookies) {
425426 logger .error ("setVidAndPxhd - failed while decoding the pxhd value" , e );
426427 }
427428 }
429+ if (cookie .getName ().equals ("pxcts" )) {
430+ this .pxCtsCookie = cookie .getValue ();
431+ }
428432 }
429433 }
430434 }
0 commit comments