def delete(self): self.clear() if hasattr(self._session, 'delete'): self._session.delete() self._anonymous = True self._session = _Session_Dict.new_session() # TODO: borrar sesiones antiguas
def __init__(self, session=None, session_data=None, from_cookie=True, from_rpc=False): if session is None: self._session = _Session_Dict.new_session(session_data=session_data) self._anonymous = True else: self._session = session self._remember = session.remember self._accessed = True if from_rpc: self._cookieless = True
def __init__(self, session=None, session_data=None, from_cookie=True, from_rpc=False): if session is None: self._session = _Session_Dict.new_session( session_data=session_data) self._anonymous = True else: self._session = session self._remember = session.remember self._accessed = True if from_rpc: self._cookieless = True