Close user session by full browser close

Is it possible to force the logoff if a user closes the browser completely without closing the session correctly?

Regards,

Nelson F

It is not possible in Web applications. Session will be closed after timeout. The only thing you could do - make user session timeout smaller: https://doc.cuba-platform.com/manual-6.7/app_properties_reference.html#cuba.userSessionExpirationTimeoutSec

There are a lot of corner cases when you simply cannot do this: network errors, users disables Wi-Fi on a laptop, browser crashed, etc. Also, modern browsers do not allow JS apps to send HTTP requests when a browser window is going to be closed.

1 Like

Thx by your answer @artamonov, the subject has been clear.