From: "Carl Johnstone" <[EMAIL PROTECTED]>
cookie_domain => the_host()
in the MyApp config, but when I try to start the server it gives an error
telling that I can't use the method "req" because $c is undefined.
I'd be curious about why you wanted the cookie domain in the config
anyway!
I presume you've got a bit of code like:
$c->response->cookies->{'foo'} = { domain =>
$c->config('cookie_domain') };
In which case why couldn't you just do
$c->response->cookies->{'foo'} = { domain => $c->req->hostname };
I needed the domain name for setting the session in MyApp.pm.
Octavian
_______________________________________________
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/