WKWebView Close User Session when App is Terminated

295 Views Asked by At

Out server has a limit on the number of concurrent sessions.

When user closing and opening the application 2 or more times, our web page is not displayed. When user killing the application, and then when login again, the server apparently does not have time to track the end of the previous session and initiates a new one. Immediately the restrictions pop up and the application shows a crash screen instead of our web page.

Is there some way to forcefully terminate the user session when exiting the application?

Thanks in advance !

1

There are 1 best solutions below

2
roadRunner On
URLSession.reset() 

you can try this simply