def quarantine_session(request, locations):
 request.session['third_party_auth_quarantined_modules'] = locations

def quarantine_session ( request , locations ) : request . session [ 'third_party_auth_quarantined_modules' ] = locations
set a session variable indicating that the session is restricted to being used in views contained in the modules listed by string in the locations argument .