# Delete Record when closing window

**URL:** <https://forum.kirupa.com/t/delete-record-when-closing-window/322497>\
**Category:** programming\
**Created:** [May 23, 2011, 4:34pm UTC](https://forum.kirupa.com/t/delete-record-when-closing-window/322497 "2011-05-23T16:34:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dee\_flash](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dee\_flash](https://forum.kirupa.com/u/dee_flash)\
**Post date:** [May 23, 2011, 4:34pm UTC](https://forum.kirupa.com/t/delete-record-when-closing-window/322497/1 "2011-05-23T16:34:51Z")

</div>

I have developed a chat application using flash CS3. And there is a “Sign out” button which will delete users record from database (through php).

But some users may simply close the browser window without even logging out. I want to know is it possible to delete the user’s record from database when the user closes the window?
