> -----Original Message-----
> From: Gerald Richter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 3:47 PM
> To: Michael Stevens; [EMAIL PROTECTED]
> Subject: Re: problems with using embperl sessions from a mod_perl
> handler
> 
> 
> >
> > $expires = "; expires=Thu, 1-Jan-1970 00:00:01 GMT" if ($id &&
> !$initialid)
> > ;
> 
> Your are right, this line doesn't see to make sense.
> 
> >
> > 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...
> >
> 
> As far as I see it's just a copy and paste error :-(
> 
> >
> > HTML::Embperl::Req::SetupSession;
> > my $udat = HTML::Embperl::Req::GetSession;
> 
> you need to pass the Apache req record here, because in the 
> Auth handler,
> the environment is not setup, so Embperl won't get the 
> cookie. Replace the
> above two lines with:
> 
> my $udat= HTML::Embperl::Req::SetupSession ($r) ;
> 
> where $r is the Apache object that's get passed to your handler
> 
> Hope this works now. I am leaving tomorrow morning for the 
> ApacheCon, so I
> maybe not able to answer any further question until I get back to some
> email, which will be hopefully at thusday evening.

Is it safe to call SetupSession even if the session may already
have been setup?

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