check session as id (from auto_increment value)