AnsweredAssumed Answered

Handling Cookies in Layer 7

Question asked by Sathish2306 on Oct 26, 2015
Latest reply on Oct 27, 2015 by kange05

Hi,

 

I am calling an 3rd party service using layer 7.

 

USE CASE 1:

 

Consider my Request Information is like this,


Layer 7 Request URL : http://l7host.com/addtocart

Method : POST


Internally Calling Request URL: "http://www.some.com/addtocart"

Method: POST


After the successful addtocart, the internal service returns cookies.


Questions:


1. How can i pass those cookies to the client?

2.  Do i need to parse those cookies manually and set to client?

3.  If 2 is doable, is it feasible?


USE CASE 2:


Consider my Request Information is like this,


Layer 7 Request URL : http://l7host.com/addtocart

Method : POST


INTERNAL SERVICE 1 :Internally Calling Request URL: "http://www.some.com/addtocart"

Method: POST


INTERNAL SERVICE 2: Redirection Endpoint : "http://www.some.com/addtocart-redirect-success"

Method : GET


After a successful transaction (internal service-1), the internal service redirects to another endpoint (Redirection Endpoint)(internal service-2),

that endpoint requires the cookies set by the (internal service-1).


Questions:


1. How can pass through all cookies for all subsequent request?

2. Do i need manually handle the cookies and pass to the subsequent calls?



Further,


1.  What is the best practice for handling cookies in layer 7?

2.  Is there any configuration options needs to be turned on?


Outcomes