The session middleware for NotEd