Newbie help - My cookies won't bake?

2002-03-08 Thread Jeff Armstrong
Revered Chefs, Please forgive a mere mod_perl kitchen-hand, undergoing early cookie training... I have the following cookie code, but no cookies come back when I refresh, and I don't see any $HTTP_COOKIE in %ENV. $cookies ends up as a hash ref pointing to an empty hash. I have the following

Re: Newbie help - My cookies won't bake?

2002-03-08 Thread Geoffrey Young
Jeff Armstrong wrote: Revered Chefs, Please forgive a mere mod_perl kitchen-hand, undergoing early cookie training... I have the following cookie code, but no cookies come back when I refresh, and I don't see any $HTTP_COOKIE in %ENV. $cookies ends up as a hash ref pointing to an empty

Re: Help with cookies

2001-08-09 Thread Mark Maunder
If you're chaining handlers, they should all return OK. They will all get called, so long as they either appear in the config file on the same line, or have been registered using $r-push_handlers(). One of them must send the header though, or return REDIRECT (for example) to perform a redirect.

Help with cookies...

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Help with cookies

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Re: Help with cookies

2001-08-08 Thread Robert Landrum
At 3:50 PM -0400 8/8/01, Perrin Harkins wrote: It depends on what's happening in that second module. If you don't send an actual response to the client, headers (including cookies) will not be sent out. Umm... Is return OK; the correct thing to return when using multiple handlers? I

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
Long time no hear... I heard you moved to NY... This is true. I'm exploring new territory. I think I do send a response back to Apache! I mean I return OK status. Or do you mean something else? Like $r-header_out(...)? You need to send the headers (with $r-send_http_header or something

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
Umm... Is return OK; the correct thing to return when using multiple handlers? Yes, according the mod_perl docs. It only stops if you return something other than OK or DECLINED. - Perrin

Re: Help with cookies

2001-08-08 Thread Alastair
On Wed, Aug 08, 2001 at 12:21:07PM -0700, Rasoul Hajikhani wrote: But I never get to set the cookie... Can someone tell me what I am doing wrong? As Perrin, said, is a cookie header being set and sent somewhere else in the code? In my experience, cookie programming can be extremely