def save_session(request, response):
    if not request.in_api and request.session.should_save:
        request.session.save_cookie(response, settings.COOKIE_NAME)
Saves the session to the response.  Called automatically at
dataset/ETHPy150Open mitsuhiko/solace/solace/application.py/save_session