From e99eda8fc47c7fbf559eb2d6cd9e0e7ba7f45987 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期四, 12 五月 2022 13:07:36 +0800 Subject: [PATCH] 打印条码更改 --- WebAPI/Global.asax.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/WebAPI/Global.asax.cs b/WebAPI/Global.asax.cs index 3e4bc83..a6dbee1 100644 --- a/WebAPI/Global.asax.cs +++ b/WebAPI/Global.asax.cs @@ -4,6 +4,7 @@ using System.Web; using System.Web.Http; using System.Web.Routing; +using System.Web.SessionState; namespace WebAPI { @@ -13,5 +14,14 @@ { GlobalConfiguration.Configure(WebApiConfig.Register); } + + /// <summary> + /// 寮�濮媠ession浼氳瘽 + /// </summary> + protected void Application_PostAuthorizeRequest() + { + HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required); + } + } } -- Gitblit v1.9.1