protected void CleanupOldSessions()
 {
     foreach (string fileName in this.IsoStore.GetFileNames("Telerik*.json"))
     {
         try
         {
             if (this.Load(SessionName.FromExisting(fileName)).IsExpired())
             {
                 this.IsoStore.DeleteFile(fileName);
             }
         }
         catch
         {
         }
     }
 }
Пример #2
0
 public Session SetName(SessionName name)
 {
     this._name = name;
     return(this);
 }