[Catalyst] patch for C::P::Session::Store::Cookie

Tomas Doran bobtfish at bobtfish.net
Tue Jun 9 20:42:50 GMT 2009


On 9 Jun 2009, at 21:29, J. Shirley wrote:

> On Tue, Jun 9, 2009 at 1:15 PM, Tomas Doran <bobtfish at bobtfish.net>  
> wrote:
>
> How would something like a 'cookie_name_stash_key' configuration  
> parameter sit with you?
>
> If not provided, we do what we do now, if provided then that stash  
> key will be used if present and defined, otherwise the default  
> handling will be used.
>
> If it can understand nested keys in the stash, I'm all in favor of it.
>
> Something like $c->stash->{page}->{cookie_domain} would fit inline  
> with what I currently do for similar things.

I guess if cookie_name_stash_key is a non ref scalar, then it's  
treated as a sting ($c->stash->{$cookie_name_stash_key}), otherwise  
it's treated as a set of keys (e.g. cookie_name_stash_key => [qw/page  
cookie_domain/] does your example above.

Cheers
t0m

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090609/5b951f19/attachment.htm


More information about the Catalyst mailing list