Easiest way is to store the values inside tg.session and set session
as being stored as a crypted cookie by placing:

beaker.session.type = cookie
beaker.session.validate_key = abcde1234longprivatekey

inside your development.ini

On Tue, Apr 24, 2012 at 9:01 AM, León Domingo <[email protected]> wrote:
> Hi,
> I'm using this to store a value into a cookie:
>
>    response.set_cookie('foo', value=bar, max_age=1234567)
>
> Is there any way to encrypt the value? Should I use Beaker instead of WebOb
> (response)? In that case, could you give me an example?
>
> Thanks in advance
>
> León
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/jWuYthdlaycJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to