in reply to Re^3: CGI::App session params losing values between redirects
in thread CGI::App session params losing values between redirects

Thanks Sam.

Two questions:

  1. What would something "static" look like for -domain or should I just kill the attribute?
  2. Dumb question of the day: so in any given instance, I can only have one cgiapp_init? I.e., one in my working module and one in the Super will overwrite each other? Makes perfect sense. Unfortunately, that's not what's happening here. But good to know. Duh!

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^5: CGI::App session params losing values between redirects
by samtregar (Abbot) on Feb 15, 2009 at 19:56 UTC
    1. ".foo.com" - static means a non-dynamic value, something fixed.

    2. You can have multiple, but have to call up the tree from your sub-class: $self->SUPER::cgiapp_init(). This is how inheritence works in Perl - if you override a base class method you have the option of calling it with SUPER::, or not. Often you need to put some thought into the right place to call it - before your sub-class does its thing or after. If they're both modifying the object's state this can be critical to getting it to do what you want.

    -sam