protected override void OnBeginRequest(HttpContext context, EventArgs e) { var id = Guid.NewGuid(); context.SetId(id); SetMarketPlaceParameter(context); WebSession.BeginSession(context, _cryptographicService); if (WebSession.IsInitialized) { var webSession = WebSession.Current; var clientIp = context.GetClientIp(); webSession.SetPersistentProperty(IpAddress, clientIp); var sessionToken = webSession.Get <SessionToken>(WebSession.SessionTokenSlot); Logger.Debug("Session " + sessionToken + " IP " + clientIp); } }