[util][SanCoder] - refactor session validation