Yehuda, by "class" do you mean "document type"? In any case, I believe the answer is no.
However, the rules may be distinguished on a per-page-template basis. So another idea is to perform the session maintenance in a user control that gets placed on every page template, and let the user control's properties distinguish the rules for that particular page template.