That wouldn't work for me. At times, I've opened multiple responses to posts in a topic and written answers to them all "simultaneously" (in a multi-tasking way).Fyorl wrote:I started work on this, the PR is here: https://github.com/phpbb/phpbb3/pull/1063
Some questions that have cropped up: Do we need to keep track of more than one post at a time? It seems to me that a user will only be working on one post at a time per board. If we want to distinguish posts, how should they be uniquely identified? Forum and/or topic combo?
When do we clear autosave data? Can we rely on the 'post success' page to reliably delete the data before it redirects?
Update:
Decided on saving post data uniquely with the topic id and/or forum id (in the case of a new topic). Also the window creation time will be used in the case that a user opens multiple tabs in the same topic.
My proposal would modify yours slightly. If somebody is editing or quoting a post, use the post ID of the post being edited/replied to; if they're writing a new post, use the topic ID (if it's not edited or quoted) or the forum ID (if they're not in a topic at all).
Steve