Hi.
I'm trying to use embperl sessions from a mod_perl
authentication handler (subclass of Apache::AuthCookie).
My code looks like this:
sub touch_session {
my $r = Apache->request or die "no request";
HTML::Embperl::Req::SetupSession($r);
## do some stuff with sessions
# call GetSession and do some stuff
HTML::Embperl::Req::SetSessionCookie;
HTML::Embperl::Req::CleanupSession;
}
But I get the following error from apache:
[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.
If I comment out the call to SetSessionCookie it's happy, but
doesn't actually set the session.
I only get this problem if I try to set the cookie in a situation
where the authentication handler is also setting a cookie - in
other circumstances it all seems to work, even if I don't call
SetSessionCookie and 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]