PDA

View Full Version : Possible? Store avatar cookie for logged out user...


Dr.CustUmz
02-24-2015, 07:59 AM
so i have an idea, dont want to spoil it too much, but before i even begin i thought i'd ask. Is it possible to store a cookie of the users avatar so even logged off it will be like oh hey heres your avatar, or is this beyond cookies?

Zachery
02-24-2015, 10:29 AM
Why would you want to store avatar data about a logged out user? Sounds like a bad idea.

kh99
02-24-2015, 10:32 AM
You could store the user's id in a cookie, then use that to get the avatar. I don't know if you could or that you'd want to save the entire avatar image in a cookie. If you have user profiles available to guests then you already have the ability for anyone to see the avatar just by providing the userid, so you're not exposing anything extra. Just don't do anything that assumes they are really that user based on the cookie.

Edit: There's also the issue of more than one person using a computer, or using public computers, which I believe is why the cookies are normally all deleted when you log out.

Dr.CustUmz
02-24-2015, 10:58 AM
Why would you want to store avatar data about a logged out user? Sounds like a bad idea.

the idea is a login system, that displays the last user logged in on that pc's avatar, forms now days already remember usernames and passwords so having a system where is shows the avatar of the user (like facebook for example) would not hurt anything, or even having a fetch function that fetches the avatar on every keyup so as your logging in its finding user's avatar then finally usernames avatar. or when usernames box is unfocussed (the password box is activated) it could fetch then.

but the original idea (damn A.D.D. lol) where it just stores a cookie, would be something like this:
https://s3.amazonaws.com/f.cl.ly/items/0y0r153W1N321e1E3238/Untitled-1.jpg
then once the user clicked not username, it would clear the cookie and refresh the page or ajax refresh resulting in a default set img.

I myself think that'd be pretty cool and can see this on a variety of applications not just limited to vBulletin.

or figuring out a way like google does, and storing all recent users (with avatars) and user can just click which one they are and enter thier password.

http://cl.ly/image/1U2w1Q0a3F01/Image%202015-02-24%20at%208.03.04%20AM.png