mod_jid_prep: rework properly, limit based on session type.