How to get BAYEUX_BROWSER cookie from cometd.NET client

可紊 提交于 2020-01-07 05:22:10

问题


I am using cometd.net client, server side uses cometd java. After handshake, server will return a json payload, in response header, there is Set-Cookie: BAYEUX_BROWSER=533bkb4ydvb9rti9gz9zxs3fgfv, how to get this from client? I saw there is clientid in json payload, but that's not bayeux_broswer. thanks


回答1:


I got it. It is in LongPollingTransport.GetResponseCallback, add cookie from response to LongPollingTransport.parent



来源:https://stackoverflow.com/questions/9519910/how-to-get-bayeux-browser-cookie-from-cometd-net-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!