I did get it to work with this:
[- $req_rec = shift; -]
[- my $udat =  HTML::Embperl::Req::SetupSession($req_rec); -]
I just forgot that the default cookie expires when the browser closes so
the session is lost without changing the timeout on the cookie. duh....
I do have a couple of observations:
1: in a pattern match like [$ if ( $fdat{QC} =~ m/(\d+)/  ) $]
[- $num = $1 -]
for example. The $1 variable never seems to get populated during the
match like in a regular old perl script.
2: I have noticed that when I set a page variable using %mdat
performance is terrible. I will run a debug log and see if I see
anything. Have you or any one else experienced this? Also, what level
would you reccomend that I log at?
Will Schroeder
On Thu, 2004-12-09 at 20:47 +0100, Gerald Richter wrote:
> > BTW: when I get this to work I will be more that happy to 
> > fully document what I did post it back here.
> > Apache 1.3.33, embperl 1.3.6, mod_perl 1.2.9, apache::session 
> > 1.6, apache::sessionX 2.00b5 The Trying to restore session page:
> > [- use Apache::Session::MySQL; -]
> > [- use Apache; -]
> > [- use DBI; -]
> >....
> 
> 
> You don't need all this stuff in your page, just put some data in %udat and
> you will get it back if the same user hits any other page.
> 
> Embperl handles everything for you. You only need to have Apache::Session
> and Apache::SessionX installed.
> 
> Make sure that make test of Apache::SessionX passes without errors.
> 
> Gerald
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part



Reply via email to