http://redfoot.net/3.0/code#python,
SESSION = redfoot.namespace("http://redfoot.net/3.0/session#")
authenticated = request.session_id and (request.session_id, SESSION.authenticated, Literal('True')) in redfoot
sid = request.session_id
if sid:
context = redfoot.get_context(redfoot.context_id(sid))
redfoot.remove((sid, SESSION.authenticated, None))
redfoot.remove((sid, SESSION.uid, None))
context.add((sid, SESSION.authenticated, Literal("False")))
return_uri = URIRef(request.headers.get("referer", "%s/" % request.host))
response.setStatus(302, 'found')
response.setHeader('Location', return_uri)
Comments regarding http://redfoot.net/3.0/aspects/auth/logout_process
Login to submit a comment.