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?
Undefined123
0
Newbie Poster
Recommended Answers
Jump to PostHi,
I'm a little bit confused by what you're asking. When you say "loaded" do you mean displayed??
So, in other words, here on DaniWeb, you can use the vote up / vote down arrows next to each post. If you've voted on a post in the past, then the …
All 3 Replies
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Undefined123
0
Newbie Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.