yl
2023-06-01 a4139771f09730b92fbb1672acc53e60987acee5
VueWebApi/Global.asax.cs
@@ -1,3 +1,4 @@
using log4net.Config;
using System;
using System.Collections.Generic;
using System.IO;
@@ -23,6 +24,10 @@
            this.PostAuthenticateRequest += (sender, e) => HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);
            base.Init();
        }
        void Session_Start(object sender, EventArgs e)
        {
            string sessionId = Session.SessionID;
        }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
@@ -37,5 +42,6 @@
            //XmlConfigurator.Configure();
            log4net.Config.XmlConfigurator.Configure(new FileInfo(Server.MapPath("~/log4net.config")));
        }
    }
}