    def get_session_cookie(self):
        """Get the session id from a cookie

        Returns None if no session id is stored
        """
        return self.get_cookie(SESSION_COOKIE_NAME, None)
Get the session id from a cookie

Returns None if no session id is stored
jupyterhub/handlers/base.py