Hi
How to show a custom logout page (for example public home page or login page with new session) after Application.Exit().
Currently showing blank page (Firefox 48)
Thanks in advance
When the application is terminated and the session is disposed Wisej client calls Wisej.onExit. The default implementation is window.close() – which doesn’t work in most browsers and the tab is not closed unless it’s the one created by VS in debug mode.
You can control what to do easily by adding your function. You can do it in Default.html:
<script> Wisej.onExit = function () { alert("Sorry, the app has been closed!"); location.reload(); }; </script>
The example above shows an alert and then reloads the application, in which case you’d get a new login form if your app starts like that. But you may navigate to a custom html page or anywhere else. You can even start a new different Wisej app, or pass custom arguments with the URL.
Please login first to submit.