> -----Original Message-----
> From: Gerald Richter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 8:00 PM
> To: Michael Stevens; [EMAIL PROTECTED]
> Subject: Re: problems with using embperl sessions from a mod_perl
> handler
> 
> 
> >
> > [Wed Mar 28 13:09:46 2001] [error] Can't locate object method
> "getinitialid"
> > via package "HTML::Embperl::Session" at
> > /opt/perl5.004_04/lib/site_perl/HTML/Embperl.pm line 1798, 
> <GEN9> chunk
> 31.
> >
> 
> This is a bug in 1.3.1. It is corrected in the current CVS 
> version. I append
> you a mail which contains a patch to fix it

Thanks - this has allowed me to make significant progress
in making things work.

I spent a while trying to work out why the cookie still wasn't
being set, then noticed the expiry date sent was 1970. I found
the line:

$expires = "; expires=Thu, 1-Jan-1970 00:00:01 GMT" if ($id && !$initialid)
;

If I try commenting this out, the expiry date is what I've
set in EMBPERL_COOKIE_EXPIRES, and it works as I'd expect.
However, obviously I suspect there's a reason that code was in
there - I'm just not sure what it is, and a bit of playing
with the code has not made it obvious...

And something, possibly this, is causing my code to not
pick up the existing session cookie and always replace
it.

I'm calling:

HTML::Embperl::Req::SetupSession;
my $udat = HTML::Embperl::Req::GetSession;
# do stuff with udat
HTML::Embperl::Req::SetSessionCookie; # (or my edited version, anyway)
HTML::Embperl::Req::CleanupSession;


Michael

http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.

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

Reply via email to