Beispiel #1
0
    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
Beispiel #2
0
    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
Beispiel #3
0
 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
Beispiel #4
0
 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