if (Directory.Exists(folderPath)) Directory.Delete(folderPath,true);
要么:
System.IO.DirectoryInfo d = new System.IO.DirectoryInfo(folderPath); if (d.Exists) d.Delete(true);
在这两种情况下,我都会丢失会话数据.
有没有人遇到这个问题?