'Adds headers to :class:`ajenti.http.HttpContext` that set the session cookie'

def set_cookie(self, context):

    context.add_header('Set-Cookie', Cookie('session', self.id, path='/', httponly=True).render_response())
