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: ---

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

2006-12-09 Thread cfaust-dougot
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_ID); What is $r in this case? It should be an APR::Request::Apache2 or (APR::Request::CGI I think) handle. So, where $r

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 you

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...

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

2006-12-09 Thread cfaust-dougot
@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 example and now I don't get anything at all

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

2006-12-09 Thread 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::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

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 cfaust-dougot
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 After the cookie has been set... my

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

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
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 cfaust-dougot
[mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:24 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: RE: Apache2::Cookie/APR::Request::Cookie 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

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

2006-12-09 Thread cfaust-dougot
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::Request::Cookie cfaust-dougot

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

2006-12-09 Thread John ORourke
[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.. Everything is helpful. Can I ask if there is something different

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

2006-12-09 Thread cfaust-dougot
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 be obvious but are you redirecting to a different hostname

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 the

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