# How to communicate Flex with Html

**URL:** <https://forum.kirupa.com/t/how-to-communicate-flex-with-html/278819>\
**Category:** web dev\
**Created:** [January 6, 2009, 10:22am UTC](https://forum.kirupa.com/t/how-to-communicate-flex-with-html/278819 "2009-01-06T10:22:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauthamnaidu](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@gauthamnaidu](https://forum.kirupa.com/u/gauthamnaidu)\
**Post date:** [January 6, 2009, 10:22am UTC](https://forum.kirupa.com/t/how-to-communicate-flex-with-html/278819/1 "2009-01-06T10:22:08Z")

</div>

In my flex application, whenever I closed the browser I want to execute an event. I am using  
JBoss server. When I closed the browser I want to invalidate the session. Kindly help me to do this
