in reply to Re: CGI::App session params losing values between redirects
in thread CGI::App session params losing values between redirects
Thank you samtregar
1. Is the cookie being sent back to the server by the client?
Yes it is.
2. Is the session setup code in your super class running?
Here's the entire Super class. I don't believe there could be anything in another module that would be overwriting it (there's nothing that resets the session cookie--it's all done in Super):
package Super; use warnings; use strict; use base 'CGI::Application'; use CGI::Application::Plugin::Redirect; use CGI::Application::Plugin::Session; use HTML::Template; sub cgiapp_init { my $self = shift; (my $http_host = $ENV{'HTTP_HOST'}) =~ s/(www.)([a-zA-Z0-9\-\.]+)/ +$2/; #--- Sessions & Cookies $self->session_config( COOKIE_PARAMS => { -name => 'MY_SESSID', -expires => '+8h', -path => '/', -domain => ".".$http_hos +t, }, SEND_COOKIE => 1, ); } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: CGI::App session params losing values between redirects
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 |