ah thanks, i musta skiped over this line in the docs...

" print $query->header(-cookie=>[$cookie1,$cookie2]); "

Josh Gray
Webmaster
Office of Research Computer Services
University of Missouri - Columbia


-----Original Message-----
From: Matthew Thompson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 8:43 AM
To: 'Gray, Josh'; '[EMAIL PROTECTED]'
Subject: RE: Setting two cookies in cgi.pm?


the documentation has a very good example of how to do this.
Matt

-----Original Message-----
From: Gray, Josh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 2:32 PM
To: '[EMAIL PROTECTED]'
Subject: Setting two cookies in cgi.pm?


How do you set two cookies at the same time using cgi.pm?  This is what i am
using, but as i understand it, when it writes the cookie it writes the html
header, how do i do two at the same time?

my $cookie = $q->cookie( -name    => "blah",
                                 -value   => "",
                                 -path    => "/",
                                 -expires => "-1h",
                                 -domain  => ".blah.edu",
                                 -secure  => 0 );
                 
print $q->header( -type => "text/html", -cookie => $cookie );   



Josh Gray
Webmaster
Office of Research Computer Services
University of Missouri - Columbia

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to