Hey everOne
See I looked at the cookies tutorial.
But thats for userData.
See what i want to do is when i person enters his name it wil get saved so he does not have to enter it again ever.
Please give me some help:pirate: :rambo: :ninja: :q: <:} :sigh: :crazy: :+)
The same way it’s in the tutorial!
The user enters his/her name and flash saves it on his/her hard drive and the next time the user visits that place flash detects if he(she has already visited the place and if not he/she has to type his/her name again!
Well, PHP and MySQL don’t change that scenario. You can use PHP and MySQL to store the name in a database (along with any other information you store) and only store and ID in the cookie. But if the cookie is deleted or expired you’ll be back in square one.
Cookies can be set to never expire but nothing can be done for deletion. But, as long as the cookie isn’t deleted you can id the user.
You could ofcourse store the IP and browser fingerprint in the database and look for a match, but as most people (a lot anyway) are behind some kind of masquerading firewall, many clients will have the same IP, and the browser fingerprint is not unique.
A cookie is really the only “reliable” way to identify a user again without using username/password identification. (note. afaik)