def _fixup_before_save(self):
        response = current.response
        rcookies = response.cookies
        if self._forget and response.session_id_name in rcookies:
            del rcookies[response.session_id_name]
        elif self._secure and response.session_id_name in rcookies:
            rcookies[response.session_id_name]['secure'] = True
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/globals.py/Session._fixup_before_save/original