[Catalyst] Make Catalyst NOT reset a cookie on a per action basis
Tomas Doran
bobtfish at bobtfish.net
Tue Aug 18 07:31:26 GMT 2009
On 18 Aug 2009, at 03:21, Steve Kleiman wrote:
> Thanks for getting back again.
>
> Weird. I didn't dig in too deep to figure why this is, but it is.
>
> This was what was suggested but didn't work:
>> $c->res->cookies({})
>
> However this did:
>> $c->res->headers->remove_header('Set-Cookie')
Aha :)
My suggestion was totally off the top of my head, without looking at
any of the documentation (as they usually are), ergo the getting it
wrong - I was expecting you to fiddle to find the right method if it
didn't 'just work'. :)
Glad your issue is fixed.
I'd be totally up for making 'do not send cookies' more supported /
elegant in the -Session code, but I can't think of a nicer interface
than that ^^ (probably as I haven't thought about it to hard).
Suggestions in the form of patches welcome..
Cheers
t0m
More information about the Catalyst
mailing list