I need to set multiple values for a cookie with same name.
User Name -- Xyz
Address -- abc
phone -- 123.
I have a method which sets one value at a time. (user --->name--->xyz) and adds it to the response. I call this method 3 times at 3 different places, for the same request before the response is committed. So,I have only the last set property .
We can have all the three values if i do response.addCookie for the same cookieName only once.But is there any other way so that response.addCookie can be called 3 times for the same request.
Once i call response.addCookie, is it possible to retrieve the set value before the response is committed.