"The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example."
I want to build a distributed apps where one app can be used for auth running on a separate docker, so other apps can share the session using memcached
Sessionmiddleware is able to populate the session object in the Request object,
but after execution of below line of code in AuthenticationMiddleware request.user = SimpleLazyObject(lambda: get_user(request))
The session._session dictionary elements got deleted.