Why doesn't the guest logout events fire when I close the browser or close the tab?

Sato3
Tera Contributor

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

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

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.

View solution in original post

4 REPLIES 4

Tony Chatfield1
Kilo Patron

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.

Hi, @Tony Chatfield 

 

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

Vaishnavi Lathk
Mega Sage
Mega Sage

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

Hi, @Vaishnavi Lathkar 

 

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