> -----Original Message-----
> From: Vivek Khera [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:31 PM
> To: Mod Perl List
> Subject: losing pnotes on directory "index" file
> 
> 
> I just noticed that if I request a URL by its directory,
> http://hostname/bar/ that the $r->pnotes() is lost from earlier
> handlers.
> 
> Detail:  I use AuthCookie to pull a session from the database and set
> a few things in $r->pnotes.  Later the "index.mlm" file that is
> configured as the file to use on a directory URL tries to pull
> something from there, it is missing.
> 
> I'm assuming that since the index.mlm file is "run" as a subrequest,
> that somehow the pnotes go away from the main request.
> 
> Is this indeed what is going on and is it the expected behavior?  I'm
> thinking my functions could chase up $r->prev to find the right
> pnotes as a work around.

that sounds right...  don't forget to check that $r->prev exists, too, in
case they access index.mlm directly

HTH

--Geoff


> 
> Comments?
> 

Reply via email to