def get(self): session_id = self.request.cookies.get(utils.COOKIE_SESSION_KEY, None) if session_id is not None: mc = memcache.Client() mc.delete(session_id, namespace='session') utils.remove_cookie_session(self.response.headers) self.response.headers['Content-type'] = 'text/plain' self.response.out.write('Cleared.')
def get(self): session_id = self.request.cookies.get('coiled-session-fbnews', None) mc = memcache.Client() if session_id is not None: mc.delete(session_id, namespace='session') utils.remove_cookie_session(self.response.headers) self.redirect('/fbnews/login/')