Update session and error handler