Hi Pietro,
I dont think there is any option for what you need. If 2 sessions (windows) are open it wont ask you for confirmation of unsaved data while closing the window.
The best way is to save you data using Crtl+S every couple of minutes.
-Manish