Class-based security/logout processor