socket.OnOpen = () =>
{
Console.WriteLine(socket.ConnectionInfo.ClientIpAddress + ":WebSocket已打開!");
Console.WriteLine(socket.ConnectionInfo.Cookies.Count);
allSockets.Add(socket);
};
為什么獲取Cookies數量始終為0?
這是前端置Cookies的代碼
$(document).ready(function () {
$.cookie('userID', '0000');轉載請註明出處,本文鏈接:https://www.uj5u.com/net/262290.html
標籤:C#
