Re: Cookie Code

2003-09-08 Thread Marcel Greter
Tim Edwards wrote:

I'm sending 3 cookies. The first one goes properly. The second two get 
print to the screen. Same script run under normal perl works fine. 
Suggestions?
Just a suggestion, but are you sure that you don't print out the 
content-type header after sending the first cookie ? It somehow sounds 
like you do ...



Re: Cookie Code

2003-09-05 Thread Tim Edwards
On Thu, 2003-09-04 at 16:56, Tim Edwards wrote:
 I'm sending 3 cookies. The first one goes properly. The second two get 
print
 to the screen. Same script run under normal perl works fine. 
Suggestions?

Show us the mod_perl part of your apache config.

- Perrin
Running Apache 1.3.27 and mod_perl 1.26. The script I'm using is running in 
the CGI-BIN directory till I can spend time and pull out all the sub routine 
to put in seperate files then I'll move them to the PERL directory.

IfDefine HAVE_PERL
AddModule mod_perl.c
/IfDefine
Directory /var/www/cgi-bin
   SetHandler perl-script
   PerlHandler Apache::PerlRun
   AllowOverride None
   Options ExecCGI
   PerlSendHeader On
   Order allow,deny
   Allow from all
/Directory
Directory /var/www/perl
   SetHandler perl-script
   PerlHandler Apache::Registry
   Options +ExecCGI
   PerlSendHeader on
/Directory
_
Express yourself with MSN Messenger 6.0 -- download now! 
http://www.msnmessenger-download.com/tracking/reach_general



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Cookie Code

2003-09-04 Thread Tim Edwards
The code I've been using to handle cookies ate it's self when I start using 
ModPerl. I've set my script directory to PerlHandler Apache::PerlRun while I 
converts scripts.

I'm sending 3 cookies. The first one goes properly. The second two get print 
to the screen. Same script run under normal perl works fine. Suggestions?

Here the tester code I have for the cookies:

@cookies=('session_id', $sessionid, 'URL',$http_referer, 'COMMENT', 
$cooknot);

print Content-type: text/html\n;
while( ($cookie,$value) = @cookies ) {
   print 'Set-Cookie: ' . $cookie . '=' . $value . ';';
   if ($Cookie_Exp_Date) {
   print ' expires=' . $Cookie_Exp_Date . ';';
   }
   if ($Cookie_Path) {
   print ' path=' . $Cookie_Path . ';';
   }
   if ($Cookie_Domain) {
   print ' domain=' . $Cookie_Domain . ';';
   }
   if ($Secure_Cookie) {
   print ' secure';
   }
   print \n;
}
print \n\n;
print test;
_
Use custom emotions -- try MSN Messenger 6.0! 
http://www.msnmessenger-download.com/tracking/reach_emoticon



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Cookie Code

2003-09-04 Thread Perrin Harkins
On Thu, 2003-09-04 at 16:56, Tim Edwards wrote:
 I'm sending 3 cookies. The first one goes properly. The second two get print 
 to the screen. Same script run under normal perl works fine. Suggestions?

Show us the mod_perl part of your apache config.

- Perrin



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html