.net webservices 处理Session
发布时间:2020-12-17 02:55:16 所属栏目:安全 来源:网络整理
导读:至于Session的问题: 1、服务的Method要用EnableSession=true 2、客户要能处理Cookie,在.net中很Easy的 //? [ WebMethod(Description="Per session Hit Counter",EnableSession=true)] //? public int SessionHitCounter() //? { //?? //?? if (Session["Hi
至于Session的问题: //? [ WebMethod(Description="Per session Hit Counter",EnableSession=true)] 要加上EnableSession=true才可以访问Session。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |