Generalized sessnio handler.