RE: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Charles

Chris,

It is a bit difficult to determine your problem but here are a few
suggestions:

1) Revert to $r-headers_out-set('Set-Cookie',
cookie(-name='cookie_name', -value='value_here'));  If this works, check
for a difference in the module you are using.

2) You may have inconstant privacy settings on your browser which can cause
your browser to reject cookies from untrusted sites.  Check with
http://www.w3.org/TR/P3P/ to learn about setting up your site's privacy
settings.

Charles

-Original Message-
From: Chris Pizzo [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: Weird problem with cookies on Netscape with apache running a
virtualhost


This might be a little off topic.
I recently installed apache 1.3.26 with modperl 1.26.  I run a virtual host
seconady website.  When I try to retieve or write cookies to a netscape
browser from the virtualhost URL it doesn't work.

cookies work fine on the main server.

cookies work fine on both main and virtualhost using an IE browser.

This all worked fine on both before I upgraded apache and modperl.

I use Apache::Vookie to set and retrieve cookies.

Anybody have an Idea to point me in the right direction to solve this?

Thanks,
Chris






Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Chris Pizzo


- Original Message -
From: Charles [EMAIL PROTECTED]
To: Chris Pizzo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 1:51 PM
Subject: RE: Weird problem with cookies on Netscape with apache running a
virtualhost


 Chris,

 It is a bit difficult to determine your problem but here are a few
 suggestions:

 1) Revert to $r-headers_out-set('Set-Cookie',
 cookie(-name='cookie_name', -value='value_here'));  If this works, check
 for a difference in the module you are using.

This works but I need to set multiple cookies.  Im doing this:

my $c = new CGI::Cookie(-name = 'SID', -value = 'stuff', -expires
= '+6M');
my $cc = new CGI::Cookie(-name = 'BUD', -value =
'Wassup', -expires = '+6M');

$r-headers_out-set('Set-Cookie',$cc);
$r-headers_out-set('Set-Cookie',$c);

 $r-cgi_header_out('Location',mypage.html);
 $r-send_http_header;

This only sets one of the cookies ($c).  How do I set multiple cookies?

CGI::Cookie says to concatenate using a ; but that errors out.

Sorry, bit of a novice here.
-Chris




Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread ___cliff rayman___

Chris Pizzo wrote:


 $r-headers_out-set('Set-Cookie',$cc);
 $r-headers_out-set('Set-Cookie',$c);

should this second one be?
$r-headers_out-add('Set-Cookie',$c);

i didn't get a chance to try it, but it should be easy to try.



  $r-cgi_header_out('Location',mypage.html);
  $r-send_http_header;

 This only sets one of the cookies ($c).  How do I set multiple cookies?

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/





Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread darren chamberlain

* Chris Pizzo [EMAIL PROTECTED] [2002-07-12 17:02]:
 This works but I need to set multiple cookies.  Im doing this:
 
 my $c = new CGI::Cookie(-name = 'SID', -value = 'stuff', -expires
 = '+6M');
 my $cc = new CGI::Cookie(-name = 'BUD', -value =
 'Wassup', -expires = '+6M');
 
 $r-headers_out-set('Set-Cookie',$cc);
 $r-headers_out-set('Set-Cookie',$c);
 
  $r-cgi_header_out('Location',mypage.html);
  $r-send_http_header;

$r-headers_out-add('Set-Cookie', $c);
$r-headers_out-add('Set-Cookie', $cc);

Or better yet, use Apache::Cookie, which has a bake() method that can be
used multiple times.

(darren)

-- 
Biographical history, as taught in our public schools, is still largely a
history of boneheads:  ridiculous kings and queens, paranoid political
leaders, compulsive voyagers, ignorant generals -- the flotsam and jetsam
of historical currents.  The men who radically altered history, the great
scientists and mathematicians, are seldom mentioned, if at all.
-- Martin Gardner



Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Chris Pizzo

Doh!
Thanks that's it!


- Original Message -
From: ___cliff rayman___ [EMAIL PROTECTED]
To: Chris Pizzo [EMAIL PROTECTED]
Cc: Charles [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 5:10 PM
Subject: Re: Weird problem with cookies on Netscape with apache running a
virtualhost


 Chris Pizzo wrote:

 
  $r-headers_out-set('Set-Cookie',$cc);
  $r-headers_out-set('Set-Cookie',$c);

 should this second one be?
 $r-headers_out-add('Set-Cookie',$c);

 i didn't get a chance to try it, but it should be easy to try.

 
 
   $r-cgi_header_out('Location',mypage.html);
   $r-send_http_header;
 
  This only sets one of the cookies ($c).  How do I set multiple cookies?

 --
 ___cliff [EMAIL PROTECTED]http://www.genwax.com/