Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
patch for C::P::Session::Store::Cookie
 

Index | Next | Previous | View Flat


fayland at gmail

Jun 8, 2009, 11:26 PM


Views: 604
Permalink
patch for C::P::Session::Store::Cookie

hey, it's a patch for Catalyst::Plugin::Session::Store::Cookie. to make
cookie_domain more configurable.

__PACKAGE__->config->{session}->{cookie_domain} = sub {
my $c = shift;
if ( $c->req->uri->host =~ /xxx\.com/ ) {
return '.xxx.com';
} else {
return '.yyy.com';
}
};

if it's acceptable, I'll provide a .t for that.

Thanks.
Attachments: configurable_cookie_domain.diff (1.40 KB)

Subject User Time
patch for C::P::Session::Store::Cookie fayland at gmail Jun 8, 2009, 11:26 PM
    Re: patch for C::P::Session::Store::Cookie bobtfish at bobtfish Jun 9, 2009, 10:41 AM
        Re: patch for C::P::Session::Store::Cookie jshirley at gmail Jun 9, 2009, 11:19 AM
    Re: patch for C::P::Session::Store::Cookie bobtfish at bobtfish Jun 9, 2009, 1:15 PM
        Re: patch for C::P::Session::Store::Cookie jshirley at gmail Jun 9, 2009, 1:29 PM
    Re: patch for C::P::Session::Store::Cookie bobtfish at bobtfish Jun 9, 2009, 1:42 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.