[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Re: CAP::Apache and CAP::Session


Mark Stosberg wrote:
On 2004-11-11, Michael <suppressed> wrote:

should just be this simple...


Doesn't 'require CGI::Cookie' also need to be present?

whoops! yes it does. In my tests I was requiring the plugin but also CGI::Cookie inside of my app. Forgot that the plugin needs that too. Thanks for the catch.

Here's a new patch.
--
Michael Peters
Developer
Plus Three, LP

--- /usr/lib/perl5/site_perl/5.8.3/CGI/Application/Plugin/Session.pm.OLD	2004-11-11 12:32:59.000000000 -0500
+++ /usr/lib/perl5/site_perl/5.8.3/CGI/Application/Plugin/Session.pm	2004-11-11 14:45:29.138431264 -0500
@@ -3,6 +3,7 @@
 use CGI::Session ();
 use File::Spec ();
 use CGI::Application 3.21;
+use CGI::Cookie ();
 
 use strict;
 use vars qw($VERSION @EXPORT);
@@ -106,7 +107,7 @@
     $options{'-name'}  ||= CGI::Session->name;
     $options{'-value'} ||= $self->session->id;
     $options{'-path'}  ||= '/';
-    my $cookie = $self->query->cookie(%options);
+    my $cookie = CGI::Cookie->new(%options);
     $self->header_add(-cookie => [$cookie]);
 }
 

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.