Penguin
08-07-2003, 09:08 AM
Ok, I'm making this page. It shall have a user system, with all the members stored in a mysql database.
Question: for the login, I want to set a cookie on the client's machine, so he doesn't have to log in every time he visits the page.
But what should I store in the cookie?
I've seen someone store the md5 hash of the password, and the username.
Another guy made a md5 hash of the password, email, username all together and stored it.
I've also heard that it's not safe to store the password in a cookie.
So what to do? Any ideas? (Also, what's a good way to check the client's cookie, when he visits the page.)
Thanks in advance.
Question: for the login, I want to set a cookie on the client's machine, so he doesn't have to log in every time he visits the page.
But what should I store in the cookie?
I've seen someone store the md5 hash of the password, and the username.
Another guy made a md5 hash of the password, email, username all together and stored it.
I've also heard that it's not safe to store the password in a cookie.
So what to do? Any ideas? (Also, what's a good way to check the client's cookie, when he visits the page.)
Thanks in advance.
