一般处理程序使用session

3224人阅读 2021/2/5 21:12 总访问:651825 评论:0 收藏:0 手机
分类: .net

一般处理程序使用session

先引用session的命名空间

using System.Web.SessionState;

sessin需要调用接口 IRequiresSessionState

public class Handler1 : IHttpHandler, IRequiresSessionState

最后再使用session

context.Session["Key"] = value;


评价
脚踏实地,一步一个脚印
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
欢迎加群交流技术