Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

When to use context.session

Not applicable

From the javascript object model doc (http://docs.apigee.com/api-services/reference/javascript-object-model), there are two ways to pass objects to different policies: via custom variable or context.session. All the other documents I've read mostly just use custom variables. What is the use case for using context.session? Any advantage or tradeoffs with context.session?

Thanks,

-Wei

Solved Solved
0 4 1,128
1 ACCEPTED SOLUTION

Hi @Wei Shen

Please take a look at this post. Explains when you could use context.session. Its an example of running Async http callouts using JS policy.

View solution in original post

4 REPLIES 4