# Disable save on exit

**URL:** <https://forum.collaboraonline.com/t/disable-save-on-exit/989>\
**Category:** User Support\
**Created:** [March 29, 2022, 6:58am UTC](https://forum.collaboraonline.com/t/disable-save-on-exit/989 "2022-03-29T06:58:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmlm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/jmlm/32/1909_2.png) [@jmlm](https://forum.collaboraonline.com/u/jmlm)\
**Post date:** [March 29, 2022, 6:58am UTC](https://forum.collaboraonline.com/t/disable-save-on-exit/989/1 "2022-03-29T06:58:15Z")

</div>

Hi,

When a user close a doc, I launch a def generation automatically.  
To do this, I use the last put message (Header X-Lool-Wopi-Isexitsave=true).  
The parameter “always\_save\_on\_exit default” is set to true but when a user save the doc and close it quickly (2-3 sec) → the put message is not sent (is it a bug ?) !  
So, I’d want to use the unlock message but without save on exit. Is there a way to completely disable the save on exit and may be a pretty message if the doc has not been saved ?

Regards.

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [March 30, 2022, 8:37am UTC](https://forum.collaboraonline.com/t/disable-save-on-exit/989/2 "2022-03-30T08:37:20Z")

</div>

Interesting and thanks for reporting this back!

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [March 30, 2022, 8:39am UTC](https://forum.collaboraonline.com/t/disable-save-on-exit/989/3 "2022-03-30T08:39:40Z")

</div>

if this is true: `<always_save_on_exit desc="On exiting the last editor, always perform the save, even if the document is not modified." type="bool" default="false">false</always_save_on_exit>` I think you might be right it might be a bug
