cookies and their content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Parin
Forum Newbie
Posts: 8
Joined: Thu Mar 25, 2004 7:36 am

cookies and their content

Post by Parin »

what would be the most secure:

1. set a customer cookie with only a MD5 string, which i then compare with the entry in our database
2. set a customer cookie with a MD5 string + his registered emailaddress (those two serialized()), which i then runs through our database for a match.

Or are both methods exactly the same, security wise? (the MD5 is not the user pwd, that's processed seperately)
Post Reply