问题
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