Re: security question
| From: | Jon Anderson | Date: | Wed, 22 Nov 2006 18:24:09 +0000 |
| Subject: | Re: security question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245070@lists.php.net to get a copy of this message | ||
Alain Roger wrote:
I've heard that cookies and sessions can be easily hacked...so what do you use to secure your web page. which methods ? If you want to be secure, don't trust anything. Cookies are easily modified by a user, so never store anything sensitive in there without masking it well. Personally, I don't like $_SESSION either, 'cause it doesn't work across clustered servers by default, and isn't usually terribly secure on a shared web host.I tend to use hashed data in the cookie for anything that needs to be semi-secure, and store everything sensitive in a database, one-way hashed wherever possible. jon