- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 05:31 AM
As the title says, when I close the browser or close the tab, the logout event doesn't happen for some reason.
If you do not close the browser or tab, you will be prompted for a login screen on the UI, and when you log in, the logout event will fire normally.
See below for my property values.
glide.guest.session_timeout:
Value: 5
glide.ui.session_timeout:
Value: 10
I don't know why the logout event doesn't occur.
Therefore, isn't the information based on the content of this knowledge uncertain?
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0825529
Or is there something I'm missing?
Best regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 09:13 PM
Hi, I believe that closing a browser without logging out does not immediately end the session as no logout message is sent to the instance IE the instance does not know the user is gone. An unused session will eventually time-out but there is no way of identifying if a user is idle or if they have closed their browser.
- message\data exchanges are initiated by the users browser, not the instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 09:13 PM
Hi, I believe that closing a browser without logging out does not immediately end the session as no logout message is sent to the instance IE the instance does not know the user is gone. An unused session will eventually time-out but there is no way of identifying if a user is idle or if they have closed their browser.
- message\data exchanges are initiated by the users browser, not the instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 04:18 AM
Hi,
Thank you for your reply.
Even if you haven't manually pressed logout, you may still get a logout event when you close your browser or tab.
What is the cause of this?
Best regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 04:21 AM
Hello,
Try to have a UI script which will run when the user hits logout button and use the following javascript to close the tab:
jquery - How to close current tab using javascript? - Stack Overflow
Regards,
Vaishnavi Lathkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 04:31 AM
Hi,
Users do not always log out manually.
I don't think that will be the management of logout.
Therefore, I would like to limit the actions that appear to be logout (such as closing the browser or leaving the browser unattended) when taking actions other than manually pressing the login button.
Best regards