title: Storing ViewState on filesystem
body: <p>I am referring this article regarding <a href="http://www.codeproject.com/Articles/20310/Save-ViewState-on-the-File-System" rel="nofollow">Save ViewState on the File System</a></p>
  
  <p>This is good but not ideal because it stores nothing about which page's <code>viewstate</code> it is. No mapping seems to be done between a page and it's <code>viewstate</code> file. I want to be able to use <code>Asp.Net</code> webforms rich programming model while also get rid of ViewState. I could store it in Session but then it's too expensive. I would rather prefer to store it on filesystem. </p>
  
  <p>One approach I could think of is store <code>Guid</code> for page in hidden field and store the actual ViewState in filename Guid. This would work however how do I then clean up the directory which would clear out these ViewState files? This would be a pain to create automated service for such simple task and delete these files periodically.</p>
  
  <p>Any thoughts/advises?</p>