'Creates a new session for the :class:`ajenti.http.HttpContext`'

def open_session(self, context):

    session_id = self.generate_session_id(context)
    session = Session(self, session_id)
    self.sessions[session_id] = session
    return session
