I am developing a web application where scalable vector graphics (SVG) pictures are generated on the fly based on user input. My question is how do we manage such files in server? With my understanding, we need to create temporary files and keep a link in the page send back to the user. Main questions are
1. Where do we keep these file?
2. How and when should we clear the files? (On session expiry)
3. Is there a way to embed complete SVG file in the page than keeping a link and a temporary file in server?
4. Do you have some better idea in your mind?