【发布时间】:2010-06-17 21:00:28
【问题描述】:
你看下面的代码,我是如何使用会话变量的; 所以这三个问题是:
- 它们存储在哪里? (服务器或客户端)
- 对于每个网页访问者来说它们是唯一的吗?
- 我可以在我的工作完成后使用 ajax 或简单的 js 代码将其删除吗?或者它会被自动删除..?
.
sbyte[][] arrImages = svc.getImagesForFields(new String[] { "CustomerName", "CustomerSurName" });
Dictionary<string, byte[]> smartImageData = new Dictionary<string, byte[]>();
int i = 0;
foreach (sbyte[] bytes in arrImages)
{
smartImageData.Add(fieldNames[i], ConvertToByte(bytes));
i++;
}
Session.Add("SmartImageData", smartImageData);
【问题讨论】:
标签: c# asp.net session asp.net-ajax session-variables