Re: Storing password in cookie
| From: | trlists at clayst dot com | Date: | Sat, 09 Apr 2005 13:33:50 +0000 |
| Subject: | Re: Storing password in cookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212718@lists.php.net to get a copy of this message | ||
On 9 Apr 2005 John Nichel wrote:
> While it is not absolute that you can't store passwords in a cookie, it
> is an absolute that you _shouldn't_
Sorry, I don't agree. There are very few absolute rules in software
development.
For sites accessing sensitive information or that allow spending money,
I would not store anything in a cookie that permitted a login.
However, for something like a web-based discussion board where I don't
really care if a person who sits at my computer or a thief who robs my
house gets access, I think it is not a big deal. I might, depending on
the needs, store a hash code as others have suggested, or an encrypted
version of the password, with user permission of course.
There is almost always a tradeoff between convenience and risk.
Sometimes convenience is far more important. Often risk is.
--
Tom