SessionConfig should be supported in middleware.