示例#1
0
 private void SaveCookie(AnalyticsCookie cookie)
 {
     using (var reg = new AnalyticsRegistrySettings())
     {
         var pstor = string.Format("{0}.{1}.{2}.{3}",
                                   cookie.UniqueVisitorId,
                                   cookie.FirstVisitTime,
                                   cookie.PreviousVisitTime,
                                   cookie.SessionCount);
         reg.Cookie = pstor;
     }
 }
 private void SaveCookie(AnalyticsCookie cookie)
 {
     using (var reg = new AnalyticsRegistrySettings())
     {
         var pstor = string.Format("{0}.{1}.{2}.{3}",
             cookie.UniqueVisitorId,
             cookie.FirstVisitTime,
             cookie.PreviousVisitTime,
             cookie.SessionCount);
         reg.Cookie = pstor;
     }
 }