Save user data on invalid form authenticity token
Sometimes, when a user leaves a tab open with an issue, and meanwhile somehow gets signed out, the user may try to update the ticket without realizing she is not logged in. In this case, she may spend a long time typing an update to the ticket, which then gets lost when she submits it. Instead of printing only 'invalid form authenticity token' redmine may write something like
Invalid form authenticity token. This can happen if your session has timed out. Please try to log in again. Here is the text you submitted, so you can save it:
That way, the user can copy her work to a text editor, before logging in again and submitting the update again. This would be a usability improvement.
Updated by Andrew Leech over 8 years ago
This same issue had hit me a number of times. I've found however that hitting back on the browser (chrome for me) does work for me, my text is just hidden.
After typing and entry that is an update to an existing issue, then hitting submit and finding the login page popup, I hit back on browser once and get back the page I was editing.
The text is initially gone, but if I hit the update button the edit box comes back with the text still in it. I can copy it then, re-login, and paste text back again.
Updated by Martin von Wittich over 1 year ago
This happens what feels like once per month to me, when I'm taking a long time to create a new issue, and is super annoying. The fact that the Back button of the browser simply returns to an empty form makes this especially egregious. The only way to recover the issue text is to open the network inspector and manually copypaste it from the POST data.