Logout issue while loading web view in ios

Hello all we are trying to load web view in our app but getting session related issues, getting unauthorized user.

User get logout of the APP while navigating in the APP.

This happens randomly.

Getting above mentioned issue on ios only, on Android its working fine.

We have set single device sign in by deleting accesstoken for the user.

Previously we were using django-oauth2-provider (DOP), then we tried with django-oauth-toolkit (DOT) but same thing is happening.

Getting below-mentioned error continuously while loading SCORM content(randomly). We have to kill the APP to stop it.

Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 131, in get_response
response = middleware_method(request, response)
File “/edx/app/edxapp/edx-platform/openedx/core/djangoapps/safe_sessions/middleware.py”, line 319, in process_response
response = super(SafeSessionMiddleware, self).process_response(request, response) # Step 1
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/sessions/middleware.py”, line 64, in process_response
"The request’s session was deleted before the "
SuspiciousOperation: The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.