Insert information in Global.asax

Insert information in Global.asax

  
Hi, i have a .net project and i use this

protected void Session_Start(object sender, EventArgs e)
        {
            Data.LogVisit log = new Data.LogVisit();
            log.DateAccess = DateTime.Now;
            log.SessionID = HttpContext.Current.Session.SessionID;
            string ip = BD.Utility.General.getIP();
            log.IPAdress = ip;
            log.Name = System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName;
            if (!ip.Equals("127.0.0.1"))
                BLL.LogVisits.Logs.InsertNewLog(log);
        }

To insert a new visit, so, every time session ends, i have to login, and count a new visit. How can i do this in outsystems?
Hi João,

You can right-click the Actions folder in the eSpace tree to add an action that runs on session start:



Cheers,
Tiago Simões
Also take a look into HTTPRequestHandler actions that might come handy:
Hi,
Thanks tiago