Hi, I'm developing a social service and I have a question about how user info should be loaded.
Let's assume a user clicks on an image, and I show him all of the comments. I need to know which comments the user liked. I was thinking that instead of loading all of the comment id's of all the comments the user liked over and over, I can just load them all when he/she logs in. However, I'm not sure if that's the right approach or how exactly to store them (I'm guessing storing arrays on $_SESSION isn't a really good idea. What's the best, most conventional, most space & time efficient to load user info such as that?
All 3 Replies
Be a part of the DaniWeb community