Salesforce

Passing Cookies via HTTP Requests (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Passing Cookies via HTTP Requests (Magic xpa 2.x)

The publish.html contains a Jscript function named collectRequiredCookies().

It is the developer's responsibility to add the names of the cookies that are needed to the collectRequiredCookies() function in an array named aRequiredCookies.

The published html's launchApplication() function calls the collectRequiredCookies() function, and launches the RIA application, for example: https://myserver/MagicRIAApplications/myapp/my.application?cookies=name1=val1,name2=val2.

The Rich Client will add the cookies to each request.

Reference
Attachment 
Attachment