|
A cookie in itself does not in any way have access to the database. A cookie can only contain whatever data you choose to store in it, and that is all it can do.
What you are trying to do would need a server side programming or scripting language like PHP or ASP or C or something similar.
|