# Manually Disconnect ApplinX session

**URL:** <https://techcommunity.softwareag.com/t/manually-disconnect-applinx-session/79000>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [September 12, 2008, 2:48pm UTC](https://techcommunity.softwareag.com/t/manually-disconnect-applinx-session/79000 "2008-09-12T14:48:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuben](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yuben](https://techcommunity.softwareag.com/u/yuben)\
**Post date:** [September 12, 2008, 2:48pm UTC](https://techcommunity.softwareag.com/t/manually-disconnect-applinx-session/79000/1 "2008-09-12T14:48:14Z")

</div>

Hello,

I want to disconnect the ApplinX server session when a user closes their browser. Some of my [ASP.Net](http://ASP.Net) pages inherit from the GXDefaultLogicWebForm class and when the browser is closed on these pages, the server session is disconnected. I would like to replicate this behaviour in the pages that inherit from the GXBasicWebForm class. Is there a way to do this?

The application specifics:  
ApplinX version 5.2.4.00.11  
Server : IBM Mainframe

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Asaf\_Shak](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Asaf\_Shak](https://techcommunity.softwareag.com/u/Asaf_Shak)\
**Post date:** [September 18, 2008, 1:05pm UTC](https://techcommunity.softwareag.com/t/manually-disconnect-applinx-session/79000/2 "2008-09-18T13:05:39Z")

</div>

Hi Yuben,  
Sorry for the delay in my response.  
Try adding this line:

```auto
gx_appConfig.CaptureBrowserClose = true;
```

To OnInit in GXBasicWebForm after the first line (base.OnInit).  
Let me know if this solved the problem for you,  
Asaf

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:50pm UTC](https://techcommunity.softwareag.com/t/manually-disconnect-applinx-session/79000/3 "2021-04-02T14:50:53Z")

</div>


