Store 3rd party api data in session?
I'm working on an app that connects with a third party api and retrieves a list of groups that a user is a member of. Each time a member accesses the app, when they log in, they are authenticated with the 3rd party site. Currently, after a user is authenticated, I'm hitting the api to check their group memberships, initially to retrieve their groups and subsequently to see if they've joined more groups or left a group, etc. Along with the name and id of the group, I'm pulling additional data like group location, thumbnail, number of members, etc., and storing that info in the db. So as they navigate the app, info regarding the groups is pulled from the db to be displayed.
What I'm thinking about doing is just storing the group name and the id from the 3rd party in my database and throwing the extra information about the groups in the session. I've never really used the session in this way, but seems like it could possibly be more efficient. What are some areas of concern from handling it this way? Anyone have any suggestions? Actually I don't even have a particular reason to do this, it just crossed my mind and I wanted to see what others thought about it.
Thanks
Please or to participate in this conversation.