No. Private messaging is not designed as a tool to write lengthy letters and messages to your friends. Incredibly, that's what email is designed for.
What settings do you have in the USER CP? I've never been logged out and thus never presented with the problem you've described.
The only workaround is the solution you suggested, and I use, which is to copy the text before pressing the submit button.