[Catalyst] warning

Octavian Rasnita orasnita at gmail.com
Wed Jan 23 10:45:41 GMT 2008


Hi,

I've seen that if I skip setting the cookie_domain for the session in 
MyApp.pm, the authentication works for all the domain names, but only if I 
use Internet Explorer.

Firefox doesn't like the cookies without a domain set so the authentication 
doesn't work at all with this browser.

So the best solution is to use in Root.pm:
$c->config->{session}->{cookie_domain} = $c->req->hostname;

It could be helpful if this could be done automaticly if there is no 
cookie_domain set for the session, instead of not sending any domain.

Octavian




More information about the Catalyst mailing list