don't inject session if in.R or in.W is nil