Skip to content


Handling 'complex types' as cookie values #249

deepakg opened this Issue · 2 comments

3 participants


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.


closed by 01efad8 - handling complex types as cookie values

@kolok kolok pushed a commit to kolok/Dancer that referenced this issue
franck cuny closes GH-249 - handling complex types as cookie values 01efad8
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.