Add a handler for sessions