set Object/List in session in mendix

how can I set a list in session and then clear it later? I have the following situation: I have a data-grid where I want to select multiple objects and once I press select I will go to confirmation page that has another object type which contains a comment attribute to fill before Press OK ,when I press OK I will lose that list ,so the work around here is making a dummy association with this confirmation object to fill that list then clear it before commit the confirmation Object , but this is not a good solution for many cases like this.
1 answers

If the association is owned by the object on which you add the comment, and you use a normal save button, the selection will not be lost. Maybe you should reverse your association, that will avoid the need of a dummy object.