def encode(self, session_dict):
        session_store_class = self.model.get_session_store_class()
        return session_store_class().encode(session_dict)
Return the given session dictionary serialized and encoded as a string.
dataset/ETHPy150Open django/django/django/contrib/sessions/base_session.py/BaseSessionManager.encode