title: Best practice to store temporary data for a webapp
body: <p>My newest project is able to generate documents with information from a database.</p>
  
  <p>So I copy the document template on demand to a temporary folder for a user and modify it. I do this because every template must be available during modification.</p>
  
  <p>Afterwards the user is awarded with his document via a download link from my webapp.</p>
  
  <p>My question: Is there a best practice for storing webapp data ? I thought temp would be nice for it. But since I have to delete the data myself I thought of placing it besides my WAR folder in the tomcat webapp folder.</p>
  
  <p>I use Windows 2003 as a host system with Tomcat. I use Grails, Java and Maven for my project...don't know if this information is needed.</p>
  
  <p><strong>Edit:</strong><br>
  Main reason why I ask this trivial question is...if I take care of creating/deleting my temporary data...is it still a good practice to use temp folder on the system?
  I am not sure about this...</p>