"be consistent" | |
PerlMonks |
Re^2: CGI::Session and cookie expirationby bmann (Priest) |
on Oct 18, 2004 at 21:43 UTC ( [id://400330]=note: print w/replies, xml ) | Need Help?? |
I think it's a bug too, but the first call to header just drops all arguments -
The first call to CGI::Session::header instantiates a CGI object ($self->{_SESSION_OBJ}), then calls $self->header() without any of the parameters originally passed. The second call, the CGI object already exists and sub header handles all the arguments.
Here's a minimal patch for CGI::Session (
A workaround for the OP would be to call it twice - ie
Update: modified the patch Update 2: went to rt.cpan.org, and !1's patch is almost the same...
In Section
Seekers of Perl Wisdom
|
|