def process_response(self, request, response):
        
        if not (request.is_secure() or settings.DEBUG_SECURE):
            return response
            
        try:
            accessed = request.secure_session.accessed
            modified = request.secure_session.modified
        except AttributeError:
            pass
        else:
            if accessed:
                patch_vary_headers(response, ('Cookie',))
            if modified or settings.SESSION_SAVE_EVERY_REQUEST:
                if request.session.get_expire_at_browser_close():
                    max_age = None
                    expires = None
                else:
                    max_age = request.secure_session.get_expiry_age()
                    expires_time = time.time() + max_age
                    expires = cookie_date(expires_time)
                # Save the session data and refresh the client cookie.
                request.secure_session.save()
                response.set_cookie('secure_session_id',
                        request.secure_session.session_key, max_age=max_age,
                        expires=expires, domain=settings.SESSION_COOKIE_DOMAIN,
                        path=settings.SESSION_COOKIE_PATH,
                        secure=not settings.DEBUG_SECURE)
        return response
If request.secure_session was modified, or if the configuration is to
dataset/ETHPy150Open mollyproject/mollyproject/molly/auth/middleware.py/SecureSessionMiddleware.process_response