# Simplifying logging off

**URL:** <https://techcommunity.softwareag.com/t/simplifying-logging-off/242417>\
**Category:** Forum\
**Tags:** ApplinX\
**Created:** [June 27, 2021, 3:50pm UTC](https://techcommunity.softwareag.com/t/simplifying-logging-off/242417 "2021-06-27T15:50:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard.solomyak](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/leonard.solomyak/32/18779_2.png) [@leonard.solomyak](https://techcommunity.softwareag.com/u/leonard.solomyak)\
**Post date:** [June 27, 2021, 3:50pm UTC](https://techcommunity.softwareag.com/t/simplifying-logging-off/242417/1 "2021-06-27T15:50:23Z")

</div>

Good day,

When logging off after clicking on the Logoff link on he host emulated page, the default web application redirects user to the error.jsp with the message saying the session was disconnected by the host, i.e. 5018.

Some users although do not want to see this technical message, but instead be redirected to the login page to reconnect later without additional navigation.

Replacing the error.jsp content with window.location.replace(logoff.jsp) helps to land user on the hostLogin.jsp with the ApplinX session disconnected, however the url remains z\_container.jsp preventing the consequent login.

GXLogoffHandler JS function in z\_resourceReader.jsp?res=z\_jsengine/z\_logoff.js from where the alternative redirect would be considered, appears concealed inside the GX framework …

Will appreciate an advise how to achieve the desired navigation effect.

Thank you

Leonard

---

<div class="post-metadata">

**Author:** ![leonard.solomyak](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/leonard.solomyak/32/18779_2.png) [@leonard.solomyak](https://techcommunity.softwareag.com/u/leonard.solomyak)\
**Post date:** [June 27, 2021, 8:08pm UTC](https://techcommunity.softwareag.com/t/simplifying-logging-off/242417/2 "2021-06-27T20:08:10Z")

</div>

I think I found some working solution that am now testing - adding java script function that loads logoff page by simulating the click on the Logoff hyperlink when the error page is just loaded.

---

<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:** [September 25, 2021, 8:08pm UTC](https://techcommunity.softwareag.com/t/simplifying-logging-off/242417/3 "2021-09-25T20:08:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
