I was just wondering what the best way to go about doing this is?
solutions as I see it
1) once a user logs in, get the matching id (from a user table for example) and store it in the users session
2) everytime a page loads, have a controller grab the current user's username from the UsernamePasswordAuthenticationToken in the Authentication object, and then retrieve the ID everytime needed (seems a little wasteful)
comments? thoughts? help?
Thank you.
..jay @ Pixelknowledge.com


