MCPcopy
hub / github.com/pallets/flask / save_session

Method save_session

src/flask/sessions.py:263–270  ·  view source on GitHub ↗

This is called at the end of each request, after generating a response, before removing the request context. It is skipped if :meth:`is_null_session` returns ``True``.

(
        self, app: Flask, session: SessionMixin, response: Response
    )

Source from the content-addressed store, hash-verified

261 raise NotImplementedError()
262
263 def save_session(
264 self, app: Flask, session: SessionMixin, response: Response
265 ) -> None:
266 """This is called at the end of each request, after generating
267 a response, before removing the request context. It is skipped
268 if :meth:`is_null_session` returns ``True``.
269 """
270 raise NotImplementedError()
271
272
273session_json_serializer = TaggedJSONSerializer()

Callers 2

session_transactionMethod · 0.45
process_responseMethod · 0.45

Calls

no outgoing calls

Tested by 1

session_transactionMethod · 0.36