If I have a user model and a sessions thingy, 1. Is it better to store an object of the user model in the sessions thingy and use that or 2. just store the ID of the user in sessions and create a new user model instance everytime I need user data.
In option 2 you'd query the db quite a lot I think but someone suggested that option 2 is less resource intensive and i'm not quite sure why since you'd be loading the user data out of the db on almost every single page.