Track dirty objects using a session listener