I have some information like the user full name and the profile picture that I need to access this information all the time in mysql. (all pages that he visits)
I was thinking to get this information once when user login and store this in a COOKIE. So every page I get this information in this cookie to avoid mysql connection for this everytime. (if the cookie is not set or lost date, I check mysql).
is it a good solution or a no sense one? can I have problems doing this? anyone has tried some similar thing?
thank you friends!
EDIT: I don't want to store LOGIN information in a cookie, I have SESSION for this. Just want to set a cookie for irrelevant information, his profile picture, his full name... not login access data.