Question
The Hongkong and Shanghai Banking Corporation Ltd India
The Hongkong and Shanghai Banking Corporation Ltd India
IN
Posted: Nov 19, 2024
Last activity: Nov 21, 2024
Last activity: 21 Nov 2024 1:19 EST
Closed
How to retrieve browser cookies in pega
Hi Team,
We have a requirement in which we have to read cookies to fetch the token and pass the token to another rest api.
***Edited by Moderator Marije to add Capability tags***
@GarimaM0does the documentation help at all?
Cookie usage in Pega software
To read cookies and fetch the token in Pega you can utilize the cookie that is returned when the service runs as an authenticated user. When the session state in a service package is set to Stateful the service returns a cookie in the response with the Set Cookie HTTP header. You will need to include this cookie in the header of your subsequent requests to access the token. Ensure that you have the correct cookie handling in place to manage the session effectively.
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
More about Service REST rules