Method: flask.sessions.SessionInterface.make_null_session
Calls: 82, Exceptions: 0, Paths: 1Back
Path 1: 82 calls (1.0)
Flask (79) TestSendfile.test_static_file.
NullSession (82)
1def make_null_session(self, app: Flask) -> NullSession:
2 """Creates a null session which acts as a replacement object if the
3 real session support could not be loaded due to a configuration
4 error. This mainly aids the user experience because the job of the
5 null session is to still support lookup without complaining but
6 modifications are answered with a helpful error message of what
7 failed.
8
9 This creates an instance of :attr:`null_session_class` by default.
10 """
11 return self.null_session_class()