HTML5 saving and restoring state to database
<p>I am trying to build an application using HTML5 that will allow user to add objects like: triangles, circles, squares, etc...and have ability to save these objects on the canvas for the user to return to and continue. For example, if user adds 2 triangles and 1 circle and saves, he can return to that session or start new one.</p>

<p>I was thinking of saving the data to db for persistence.</p>

<p>The problem is that I can't implement ability to save state without saving it to image.</p>

<p>I don't want to save it to image because I want the user to continue working on the same session and able to remove or add more figures to it.</p>

<p>Any help?</p>

<p>Thanks,
Al</p>