Re: code in sections executed twice in same process?

2009-11-17 Thread Adam Prime
E R wrote: The sections don't seem to be executed in the children. use a PerlChildInitHandler if you want to run code in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod_perl 1.

Re: code in sections executed twice in same process?

2009-11-17 Thread E R
The sections don't seem to be executed in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod_perl 1.3.41. Thanks, ER On Mon, Nov 16, 2009 at 4:41 PM, André Warnier wrote: > E R wrot

Re: AJAX pseudo-push

2009-11-17 Thread Andy Armstrong
On 17 Nov 2009, at 16:49, Tom Schindl wrote: > What you describe here is called Continuations in Java world :-) Continuations in the Java world are the same as continuations everywhere - but not quite what the OP described :) http://en.wikipedia.org/wiki/Comet_(programming) -- Andy Armstrong,

Re: AJAX pseudo-push

2009-11-17 Thread Tom Schindl
Nicolas George schrieb: > Hi. > > There is an increasingly popular technique to emulate server-initiated push > over HTTP. I'm sure everyone here knows it well, but for the sake of > completeness: the clients sends a XMLHttpRequest to the server in the > background; the server does not answer it i

RE: Overwriting a cookie in request header

2009-11-17 Thread Sinha, Ritu
Thanks Devin & Thomas. The 3 keys that define a unique cookie really helped understand the behavior. My module is working as expected now. --Ritu -Original Message- From: Devin Teske [mailto:dte...@vicor.com] Sent: Tuesday, November 17, 2009 10:36 AM To: Sinha, Ritu Cc: 'modperl@perl.a

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
Oops... forgot ending right-paren to add(). Replace (in all examples): . "; domain=$domain"; with: . "; domain=$domain"); ^_^ -- Devin On Tue, 2009-11-17 at 07:31 -0800, Devin Teske wrote: > Try this: > > use CGI::Util; > my $domain = "mydomain.com"; > # Add cookie to HTTP re

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
Try this: use CGI::Util; my $domain = "mydomain.com"; # Add cookie to HTTP response $r->err_headers_out->add("Set-Cookie" => "cookie_name=cookie_value" . "; path=/" . "; expires=" . &CGI::Util::expires('+60m', 'cookie'); . "; domain=$domain"; This will crea

Overwriting a cookie in request header

2009-11-17 Thread Sinha, Ritu
I have an Apache module in which I am trying to overwrite the value of a cookie. I have tried different methods of the APR::Table without success. Here are the approaches that I have tried: [1] $r->headers_out->set("Set-Cookie", $cookie); Here, $cookie has the name=value pair with the name of th