Lagom and multiple cookies

Hi,

I’m trying to use multie cookies in Lagom but without success. I use Lagom 1.6.0.

Regarding to this discussion https://github.com/lagom/lagom/issues/1000 ;; should be used as Set-Cookie header separator.
I use Cookies.encodeSetCookieHeader from play.api.mvc to endcode the cookies. What is returned in response header is this:

wss=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1ODAzMjMyOTg0MTgsInVzZXJJZCI6IjM2MDk1MGI0LWMxMWQtNDYzMC04NDMyLTQ4ZTliNGY5MjMzNiIsImVtYWlsIjoidGVzdEB0ZXN0Lm5ldCIsIm5hbWUiOiJUZXN0Iiwic3VybmFtZSI6IlRlc3QifQ.LOeapjOosb4l_TIhAU0c-V9hyQ2SoSnK-rGABtjg1tkoJbD6etT5KToU9qydNTZT24nIgCgZgGIGvgjjGx16fjl8a_zZXLOG0hK4iMrgBpgmaHAAKmrHO2MP0P5MGXplcDqGVqHqrc9RB7_H0CxCd42ByM25q3QGm-HjrGN2rs6vSE-fD0KhL4xz93rfD0qW5chFXSvFvp35NPwHIuYjafbiv51ub5PzkoqpAf4hSPxVjHuqQhvPODPeNe3MXKo1hoqCjvUnotdjHyM-i_k-BXcGheM7UZ3VU5b6Km_cDOKkkgIaCY_pV-C6CBKbi1NmHHhU6sUc4CM-29zAEYiMkA; Path=/;;ubt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1ODAzMjQyMTc3ODcsImNvbXBhbnlJZCI6eyJpZCI6ImUyZDlkNDg2LTlmZDYtNDYyOC05ZWFkLTExZWZhNGQ1YTdhMyJ9fQ.YuFQms_Z5qzOvTKjovQjyGrMyH5FNKC3uNq0M5Ug8gf71z178HdAnR8BuGRKlqlQ83GZesHp2Nkf2vP9yO9H-UjyVTvjCwoVUhdAvLyGcld6qBb0sbGorYaRtDUm6ZyjVjgdbbY_10JwRplnda4gOfrgoRGEsxmpbjYRTm9w2J6KXUb9LCC_oiFjm8pyrV0Loev13wqiv6J3OiWKJ6wLIrKAx1enMNrGnaJjXerXTilH4nkDmLI5K3om3W648MNTXPX2BHvjPjO5aWisYupu3qthN1PMqiO8rkRtoNCILtFusC4W7c7MZiKlqdZoJ_l2w0HOhgSoQEFGnnxL_I-jhg; Max-Age=600; Expires=Wed, 29 Jan 2020 18:06:57 GMT; SameSite=Lax; Path=/; Domain=home.net; HTTPOnly

under the key Set-Cookie

So I have two cookies, wss and ubt separated with ;;

But when browsers sends back the cookies I get this:

wss=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1ODAzMjMyOTg0MTgsInVzZXJJZCI6IjM2MDk1MGI0LWMxMWQtNDYzMC04NDMyLTQ4ZTliNGY5MjMzNiIsImVtYWlsIjoidGVzdEB0ZXN0Lm5ldCIsIm5hbWUiOiJUZXN0Iiwic3VybmFtZSI6IlRlc3QifQ.LOeapjOosb4l_TIhAU0c-V9hyQ2SoSnK-rGABtjg1tkoJbD6etT5KToU9qydNTZT24nIgCgZgGIGvgjjGx16fjl8a_zZXLOG0hK4iMrgBpgmaHAAKmrHO2MP0P5MGXplcDqGVqHqrc9RB7_H0CxCd42ByM25q3QGm-HjrGN2rs6vSE-fD0KhL4xz93rfD0qW5chFXSvFvp35NPwHIuYjafbiv51ub5PzkoqpAf4hSPxVjHuqQhvPODPeNe3MXKo1hoqCjvUnotdjHyM-i_k-BXcGheM7UZ3VU5b6Km_cDOKkkgIaCY_pV-C6CBKbi1NmHHhU6sUc4CM-29zAEYiMkA; wss=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1ODAzMjU5OTE3MTYsInVzZXJJZCI6IjM2MDk1MGI0LWMxMWQtNDYzMC04NDMyLTQ4ZTliNGY5MjMzNiIsImVtYWlsIjoidGVzdEB0ZXN0Lm5ldCIsIm5hbWUiOiJUZXN0Iiwic3VybmFtZSI6IlRlc3QifQ.L-bkJy0so_gphrqDjYjiK1HU-QyYTG9g8Z_ndwMlPZCGz8xlWHLevQ72CjkNCNNwW5u-azhAIfj3ewTrxqSmLZQ5mQHKz4LejuGSVsuC_YGVVf59Mj6oqwH1QOb8E43YsarPOVGukOXct9OHqLB8QukgUEr0hlLHTrravk_Y5d-PGZPL0k9y2a_4tPuHEPZVwf8-N9–Swo4c96gxQWDvs10UQFwC4MyTOlPphT16ODa2KsO2McQAemC6NjcuMU-8-3J8EWyP00MY2_-DJE6X5gOEzFwSvK9LZxqJVgjlCaDrue1qNDfqRo3wtTT1fKnVnRbQ6byb_Tmc-aebT2ZOQ; ubt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1ODAzMjU5OTI4NDMsImNvbXBhbnlJZCI6eyJpZCI6ImUyZDlkNDg2LTlmZDYtNDYyOC05ZWFkLTExZWZhNGQ1YTdhMyJ9fQ.GFyzqiYzU4aJcpDorlC1LlozffCrQ0ayv-D2nFXoNwoZvA3e-ft3ZhnSvBpKli0MOEAfJafxi3XfxVlMz-387ckxCm5yfRpUqWMFiu0RciCuojuKQ17omHPQvkSIC5FebU2ZjLm1Rv0-fODr6PhIBZylunf15OAyRmQGWNwxANd3NVfG7k75EIUjgHsBtv8tkNFaFRhP0ltjY7VJNZPU_62WOEwdCoIwA4J8MShVJW2iJ9eLv0oRZymPcTmS6ImzD5BTKyuaKsrkya4eS8kaPL1l8oDbhb57715w2wEAgCbCjDzw9IBfxxO9yo30bUPxNx40z1LQ7Siz5qp7uaahvg

Now, the cookies are separated with ;

Do I create the cookies right?

I solved this by overriding CookieHeaderEncoding.decodeSetCookieHeader to use ; as separator. So, during encode ;; is used as separator, and ; during decode.