webservice中要支持session必须声明属性 [WebMethod(EnableSession = true)]
hanlder中需要扩展接口IReadOnlySessionState
本文介绍如何在Webservice中启用Session支持。通过设置[WebMethod(EnableSession=true)]属性及实现IReadOnlySessionState接口,可以使得Webservice具备Session管理功能。
webservice中要支持session必须声明属性 [WebMethod(EnableSession = true)]
hanlder中需要扩展接口IReadOnlySessionState
1429
1257
464

被折叠的 条评论
为什么被折叠?