Keep session handling in calling code.