I'm making an admin section for a site, and to make it a bit securer, I use cookies. When you log in, the password and nick is checked against a mysql database to see if it's correct, and if it is, the password, nick and another variable is stored in a cookie.
Then, when you open a page within the admin-section, I want to have a function that takes the password and nick from the cookie, and verifies it again against the database. This however doesn't work, because the function can't seem to get the values from the cookie...
How am i supposed to do to make it work?