#3073 (feature/session): Implement automatic ID regeneration