added conditional to not add session if it's the same as the old session