Handling 'complex types' as cookie values #249

Closed
deepakg opened this Issue Jan 6, 2011 · 2 comments

Comments

Projects
None yet
3 participants
@deepakg

deepakg commented Jan 6, 2011

Right now set_cookie allows me to just set a single name value pair. It'd be extremely convenient if it could take a hash reference or array as a second value and do something with it. Right now passing a hash ref, just causes it to set HASH0x.. as the cookie's value.

e.g. In Catalyst, I can write code like:

$c->response->cookies->{oauth} = {
     value => {
         token => $nt->request_token,
         token_secret => $nt->request_token_secret,
     },
 };

It'll be great to be able to do something similar with Dancer.

@fcuny

This comment has been minimized.

Show comment
Hide comment
@fcuny

fcuny Jan 17, 2011

Contributor

closed by 01efad8 - handling complex types as cookie values

Contributor

fcuny commented Jan 17, 2011

closed by 01efad8 - handling complex types as cookie values

kolok pushed a commit to kolok/Dancer that referenced this issue May 4, 2011

@mahboob-ali

This comment has been minimized.

Show comment
Hide comment

ssd

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment