Determining which module is setting a session