Hi Alex,

> Thanks for the help...I think the register_cleanup solution may step in
too
> late in the request process...
>
> > > HTML::Embperl::Req::CleanupSession();
> >
> > do not call CleanupSession here, Embperl will do it for you later. If
you
> > call CleanupSession here EMbperl doesn't have a chance to get the
>
> But it appears to have session data available to it that I set in the
> AccessHandler...
>
> > $r -> register_cleanup (\&HTML::Embperl::Req::CleanupSession) ;
> >
> > This make sure that the session is written to disk and closed after the
> > request.
>
> This causes the process to hang (I'm guessing it's the lock on the $udat
in
> AccessHandler that Embperl::Execute waits and waits for)...and creates the
> following in my error log:
>
> [Thu Oct 26 17:22:30 2000] [error] Can't locate object method "SubReq" via
> package "Apache" at
> /usr/local/lib/perl5/site_perl/5.6.0/i686-linux/HTML/Embperl.pm line 1733.
>
> If I go with my existing solution (calling
> HTML::Embperl::Req::CleanupSession as above) it appears to work...
>
> > In cases where no Embperl page is processed, but you want to use Embperl
> > session management, you have to set the cookie on your own:
> >
> > $r -> header_out ("Set-Cookie" => "EMBPERL_UID=$udat->{_id}") ;
> > Let me know if this works for you
>
> Yes, this works great, and is what I had thrown in there as well.  I may
> actually try to modify HTML::Embperl::Req::RefreshSession to include this
so
> I don't have to know how to set the cookie manually, but Embperl knows how
> to set it itself.
>

I have just commited some changes to the CVS, that adds a SetSessionCookie
function, which should do set the cookie for cases where no Embperl page is
executed afterwards (or no http headers are generated by Embperl), like in
your case. Also this CVS version should now work correctly, if you the the

$r -> register_cleanup (\&HTML::Embperl::Req::CleanupSession) ;

to call the cleanup.

Maybe you can give it a try (see
http://perl.apache.org/embperl/CVS.pod.1.html#INTRO for cvs access)

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to