Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Philip M. Gollucci
cfaust-dougot wrote: I have read that and I used to use the 2nd method on that page without any problems.. Because I'm trying to do away with CGI.pm I'm now using the 3rd method "using libapreq2' but without the content type etc when its a redirect. Because there isn't a redirect example usin

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread John ORourke
cfaust-dougot wrote: I'm always passing a relitive path to "Location" so I didn't think it would matter.. Sure enough once I simply added 'Path => '/'," to all my cookie create statements, SUCCESS!!! Yay! Has to be said I only thought of the hostname because I do the path out of habit! By th

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
WooHoo!!! Thanks John, Clinton and Philip, you guys rock!! -Chris From: John ORourke [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 1:19 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Request::Cookie Ummm... this should b

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread John ORourke
--- *From:* Philip M. Gollucci [mailto:[EMAIL PROTECTED] *Sent:* Sat 12/9/2006 12:26 PM *To:* cfaust-dougot *Cc:* Clinton Gormley; modperl@perl.apache.org *Subject:* Re: Apache2::Cookie/APR::Request::Cookie cfaust-dougot wrote: > Thanks Clinton,John and Philip.. Everyt

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
sing libapreq2, does that mean it doesn't work with redirects?? Thanks -Chris From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:26 PM To: cfaust-dougot Cc: Clinton Gormley; modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Re

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
x27;+7d', ); $r->err_headers_out->add('Set-Cookie' => $packed_cookie->as_string); Its never easy :(.. Thanks!! ________________ From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:24 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: RE: Apach

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
> See these FAQs: > http://perl.apache.org/docs/2.0/user/coding/cooking.html Thanks for that Philip - just seen the issue I had in my live code... And Chris, ignore what I said about add() and set() - I was confused. > >

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Philip M. Gollucci
cfaust-dougot wrote: Thanks Clinton,John and Philip.. Everything is helpful. Can I ask if there is something different when redirecting? It would appear the cookie isn't being sent in a redirect. When logging in from the post form I see the "Set-Cookie" header being set but when I redirect

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
> > Can I ask if there is something different when redirecting? It would > appear the cookie isn't being sent in a redirect. It should be fine setting cookies in a redirect as long as 1) you're using $r->err_headers_out->add() 2) you're not doing an internal redirect so, for instance, this se

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
ing for a cookie that was saved the last time you were on the site. Thanks -Chris From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 11:07 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: RE: Apache2::Cookie/APR::Request::Cookie

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Philip M. Gollucci
cfaust-dougot wrote: I can both see the cookie being sent in the browser, and I can view the cookie itself on the filesystem after its been created... After the cookie has been set... my $req = APR::Request::Apache2->handle( $r ); my $jar = $req->jar; print $req->jar_status(); See this test

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
was as easy as using it :) - Back to > the drawing board!! > > Thanks > -Chris > > > > __ > From: Clinton Gormley [mailto:[EMAIL PROTECTED] > Sent: Sat 12/9/2006 10:00 AM > To: cfaust-dougot > Cc: modperl@perl.apache.org > Subject: RE: Apache2::Cookie/APR::Reque

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
faust-dougot Cc: modperl@perl.apache.org Subject: RE: Apache2::Cookie/APR::Request::Cookie On Sat, 2006-12-09 at 09:37 -0500, cfaust-dougot wrote: > Thanks for the reply Clinton, I was just using the same request obj > from the handler, guess that was wrong :) > > I tried your read exa

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread John ORourke
cfaust-dougot wrote: I've tried both Apache2::Cookie and APR::Request::Cookie (from the posts I read I got the impression it was better to use ARP::Request::Cookie then Apache2::Cookie). Definitely. You also need to read the man pages, but I've saved you the trouble... $r->err_headers_out->

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
On Sat, 2006-12-09 at 09:37 -0500, cfaust-dougot wrote: > Thanks for the reply Clinton, I was just using the same request obj > from the handler, guess that was wrong :) > > I tried your read example and now I don't get anything at all (even > though I can see the cookie on the machine) What do

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
o:[EMAIL PROTECTED] Sent: Sat 12/9/2006 8:53 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Request::Cookie > > The man page then says to use APR::Request::Cookie I should: > my $jar = $r->jar; > my $cookie = $jar->get("ISMH_SESSION

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
> > The man page then says to use APR::Request::Cookie I should: > my $jar = $r->jar; > my $cookie = $jar->get("ISMH_SESSION_ID"); What is $r in this case? It should be an APR::Request::Apache2 or (APR::Request::CGI I think) handle. So, where $r is an Apache2::RequestRec object: To set: -

Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
I'm down to the last thing I need to handle without CGI.pm to get rid of it, cookies... But I'm having a problem.. I've tried both Apache2::Cookie and APR::Request::Cookie (from the posts I read I got the impression it was better to use ARP::Request::Cookie then Apache2::Cookie). The problem