コード例 #1
0
 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);
 }