Skip to content

Instantly share code, notes, and snippets.

Created February 8, 2022 15:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Set custom cookie in Pega PRPC in Java step
// Cookie has to be set on 'set_cookie' property on pyHttpResponseHeaders on pxRequestor page
try {
tools.getRequestor().getRequestorPage().getPage("pyHTTPResponseHeaders").putString("set_cookie", "PegaCustomCookie= someCookieValue; Path=/prweb; Secure; HttpOnly;");
catch(Exception e) {
oLog.error("Exception while setting custom cookie" + e.getMessage());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment