Session

一般处理程序使用session

电脑版发表于:2021/2/5 21:12

一般处理程序使用session

先引用session的命名空间

using System.Web.SessionState;

sessin需要调用接口 IRequiresSessionState

public class Handler1 : IHttpHandler, IRequiresSessionState

最后再使用session

context.Session["Key"] = value;


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢