Home / Function/ is_null_session() — flask Function Reference

is_null_session() — flask Function Reference

Architecture documentation for the is_null_session() function in sessions.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  1b3ce05d_9f5d_ca0f_d90c_87f0a25a18ba["is_null_session()"]
  bbf56873_bd71_6e70_f44c_ca8a85b0a007["SessionInterface"]
  1b3ce05d_9f5d_ca0f_d90c_87f0a25a18ba -->|defined in| bbf56873_bd71_6e70_f44c_ca8a85b0a007
  f653c3a8_c501_85ce_5865_f14ec4664394["process_response()"]
  f653c3a8_c501_85ce_5865_f14ec4664394 -->|calls| 1b3ce05d_9f5d_ca0f_d90c_87f0a25a18ba
  eb7c3517_582e_6dd2_c80b_a8be784317c7["session_transaction()"]
  eb7c3517_582e_6dd2_c80b_a8be784317c7 -->|calls| 1b3ce05d_9f5d_ca0f_d90c_87f0a25a18ba
  style 1b3ce05d_9f5d_ca0f_d90c_87f0a25a18ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/sessions.py lines 176–183

    def is_null_session(self, obj: object) -> bool:
        """Checks if a given object is a null session.  Null sessions are
        not asked to be saved.

        This checks if the object is an instance of :attr:`null_session_class`
        by default.
        """
        return isinstance(obj, self.null_session_class)

Subdomains

Frequently Asked Questions

What does is_null_session() do?
is_null_session() is a function in the flask codebase, defined in src/flask/sessions.py.
Where is is_null_session() defined?
is_null_session() is defined in src/flask/sessions.py at line 176.
What calls is_null_session()?
is_null_session() is called by 2 function(s): process_response, session_transaction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free