문제

Is there any setting in Open SSO which can destroy the user session when the user closes the browser window. I know by plain JavaScript we can add the window.onbeforeunload but that is no guarantee.

도움이 되었습니까?

해결책

No. There's literally no guaranteed way to find out whether the user closed the browser window - unless you establish a poll and listen to a heartbeat emitting from client side JS (an ajax call to your server) periodically.

Upon sever not getting the heartbeat for some time, you can conclude that the browser window was closed/crashed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top