I am using Symfony2 but this question is pretty general.
I want to login a user and right after the login, let him choose from a certain amount of "roles". These roles are objects in the database carrying a lot of configuration with them.
Question: What is the best practice of storing what role the User chose?
Session? But it's bad practice to store objects in sessions, isn't it? Id of the role in the Session? Id (or a hash of it) of the role in a cookie?
Thanks for your thoughts.