* On Tue, Feb 12 2008, Jennifer Ahn wrote: > Toby Corkindale wrote: >> To set cookies, use $c->response instead, like: >> $c->response->cookies->{'newCookie'} = { >> value => '123', >> path => '/', >> domain => 'foobar.com', >> expires => '+8h', >> }; > > How did you instantiate the cookie in the beginning of the session?
Re-read the above. $c->res->cookies is a hash. You put stuff in there and Catalyst will take care of the rest. If you want sessions instead of just a value in a cookie, then look at the Catalyst::Plugin::Session framework. Finally, it's extremely difficult to reply to your messages when you top-post. Most people's mail clients can't auto-fix that and as a result they won't bother replying to you. Just FYI. Regards, Jonathan Rockway _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/