Re: Is session_start() using encrypted cookies with HTTPS
| From: | Bastien Koert | Date: | Tue, 09 Nov 2010 19:19:50 +0000 |
| Subject: | Re: Is session_start() using encrypted cookies with HTTPS | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309413@lists.php.net to get a copy of this message | ||
On Tue, Nov 9, 2010 at 2:10 PM, Adam Richardson <simpleshot@gmail.com> wrote:
>>
>> If the cookie needs to be encrypted, why not just encrypt it and worry less
>> about the transport layer? Or just down one hash value id cookie and pull
>> back the secure data for action just on the server?
>>
>> Bastien
>
>
> The issue highlighted in Yannick's question wouldn't be resolved by merely
> encrypting the cookie value.
>
> Encrypting a cookie value protects the value encrypted, and for some
> situations this is exactly what you want. Maybe you're storing preferences
> for your app, but want to make sure they aren't tampered with, etc.
>
> However, encrypting a cookie that's used as an auth token won't buy you
> anything if the transport layer doesn't provide encryption. That's because
> an auth token mere presence works to sufficiently identify an authenticated
> user. I don't have to know what the value in the cookie means in any way.
>
> Does this help clear up your question, or did I misunderstand you, Bastien?
>
> Adam
>
> --
> Nephtali: PHP web framework that functions beautifully
> http://nephtaliproject.com
>
Nope, makes sense, Adam.
Thanks,
--
Bastien
Cat, the other other white meat