we want to set Cookie on response.So that cookie is used for some other purpose in subsequent requests. tried below options not working.
1)Tried to refer pxhttpservletresponse on servlet object using java and set cookie but we see that pxhttpservletresponse is null in our activities. Can't we be able to access pxhttpservletresponse from requestor page? see couple of posts and activities accessing that.
2) tried to override http/responseHeaders DSS and included Set-Cookie header with our custom cookie name. it is also not helping. not sure if Pega overrides Set-Cookie header else where. However i can see that multiple Set-Cookie header in dev tools but my set-cookie header is not appearing. When i have any other header in this DSS it is reflecting.
Please suggest if any other ways to set Cookie or is there anything wrong in above options while trying.
***Edited by Moderator Marissa to update Content Type from Discussion to Question; update platform capability tags***