//---------------------------------------------------------------------------------------------------------- public static void IncreaseSubSiteVisites() { HttpContext context = HttpContext.Current; OwnerInterfaceType interfaceType = SitesHandler.GetOwnerInterfaceType(); if (interfaceType == OwnerInterfaceType.SubSites) { Guid OwnerID = SitesHandler.GetOwnerIDAsGuid(); string OwnerIdentifire = SitesHandler.GetOwnerIdentifire(); //-------------------------------------- List <string> visitorSubSites = null; try { visitorSubSites = (List <string>)context.Session["VisitorSubSites"]; } catch { } //-------------------------------------- if (visitorSubSites == null) { visitorSubSites = new List <string>(); } //-------------------------------------- foreach (string site in visitorSubSites) { if (OwnerIdentifire == site) { return; } } //-------------------------------------- UsersDataFactory.IncreaseVisits(OwnerID); visitorSubSites.Add(OwnerIdentifire); context.Session["VisitorSubSites"] = visitorSubSites; } }