in reply to CGI::App session params losing values between redirects
Can you post actual working code? Obviously what you posted is just a sketch of your code and it's hard to know what's going on. If not, here's how I would debug:
1. Is the cookie being sent back to the server by the client? You can check this with FireBug or by using a network analysis tool like WireShark.
2. Is the session setup code in your super class running? Maybe you have that session call in a method that's being overridden in the sub-classes and you're not calling $self->SUPER::whatever().
3. One way to test if it's #2 - duplicate the session config down into the two sub-classes. Does it start working?
-sam
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CGI::App session params losing values between redirects
by bradcathey (Prior) on Feb 14, 2009 at 18:16 UTC | |
by samtregar (Abbot) on Feb 14, 2009 at 21:02 UTC | |
by bradcathey (Prior) on Feb 15, 2009 at 13:53 UTC | |
by samtregar (Abbot) on Feb 15, 2009 at 19:56 UTC |
In Section
Seekers of Perl Wisdom