Ejemplo n.º 1
0
 def clean_user_session(self):
     """Disconnect the endpoint the user was logged on + Remove cookies."""
     for endpoint in self.session.endpoints:
         disconnect_from_circus(endpoint)
     self.session.endpoints = set()
Ejemplo n.º 2
0
 def clean_user_session(self):
     """Disconnect the endpoint the user was logged on + Remove cookies."""
     for endpoint in self.session.endpoints:
         disconnect_from_circus(endpoint)
     self.session.endpoints = set()
Ejemplo n.º 3
0
def disconnect():
    if disconnect_from_circus():
        set_message('You are now disconnected')
    redirect(url('index'))
Ejemplo n.º 4
0
def disconnect():
    if disconnect_from_circus():
        set_message('You are now disconnected')
    redirect(url('index'))
Ejemplo n.º 5
0
def disconnect():
    if disconnect_from_circus():
        set_message('You are now disconnected')
    redirect('/')