pnotes notes and subprocess_env

2002-04-18 Thread Rasoul Hajikhani

Folks,
I don't seem to be able to make pnotes, notes or subprocess_env work. I
am trying to pass a value from a handler to another, and from what I
have read in the Eagle, and cook book, the request ought to be the main
one in order for the pnotes, ... to work. So Here is the snippet of my
code:

.
.
.
$r-pnotes(STICKY = hello world);
$r-custom_response(FORBIDDEN, /secureDB/Login);
return FORBIDDEN;
.
.
.

package secureDB::Login;

sub handler
{
my $r   = shift;
$r  = ($r-is_main ? $r : $r-main);

my $object  = undef;

my $notes   = $r-pnotes(STICKY);
warn notes = $notes\n;
#$object-{query}= $r-args ||
$r-content;
#$object-{path} = $r-uri();

#$object-{FILE} = secureLogin.html;

#getUserInfo($object,$uid);
makeTemplate($object,$r);  


return OK;
}
1;

Noe I have tried subprocess_env, notes, and pnotes, but none seem to
work. I have to warn you that I can not use Apache::Request-instance()
because of my Apache version.
I appreciate all the help.
Thanks in advance
-r



Re: pnotes notes and subprocess_env

2002-04-18 Thread darren chamberlain

* Rasoul Hajikhani [EMAIL PROTECTED] [2002-04-18 16:29]:
 I don't seem to be able to make pnotes, notes or subprocess_env work.
 I am trying to pass a value from a handler to another, and from what I
 have read in the Eagle, and cook book, the request ought to be the
 main one in order for the pnotes, ... to work. So Here is the snippet
 of my code:

I've seen situations where $r-main does not actually return the main
request instance, and code like this has worked:

  $r = $r-main until ($r-is_main);

No explanation, but I've seen it necessary in a few cases.  In the case
of main requests, it has no effect, so it's safe to include.

(darren)

-- 
Democracy is a form of government where you can say what you
think, even if you don't think.