on ‎2016 Nov 28 6:53 AM
Hi,
Documentation tells that onExit() calls by framework when view is destroyed.
Does any one know whether Controller's onExit() will be called either on page "refresh" OR closing browser tab.?
Thanks,
Srinath
Request clarification before answering.
Hi Ulrich,
Thank you for response.
In our app we are not using Routing and it is a Customized UI5 app.
Challenge here is, in our app we are calling 'DestroySession' OData call to kill user session inside "beforeunload" method. 'DestroySession' should execute only Closing of the browser, not on Browser refresh. Unfortunately, "beforeunload" is being called on browser "refresh" also.
I tried to distinguish between "refresh" and "tab close", but no luck.
I tried modifying 'beforeunload' so as to prompt user with options "Leave/Stay", but am unable to get the event on which button user has clicked (Leave/Stay).
So, thought of shifting 'Destroying Session' OData call to onExit(). Trying to see when onExit() will be executed, either on 'refresh of the page' OR 'tab close'.
Thanks,
Srinath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.