Am Freitag, 10. Dezember 2004 04:05 schrieb Will Schroeder:
> I did get it to work with this:
> [- $req_rec = shift; -]
> [- my $udat = HTML::Embperl::Req::SetupSession($req_rec); -]
You don't need these two lines! Just use %udat. Embperl sets it up for you.
> 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....
Yes, use EMBPERL_COOKIE_EXPIRE in your httpd.conf
> 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.
%fdat is a normal Perl hash, so there is no reason why this should not work.
> 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?
Consitency Embperl locks the entry when you access %mdat, this might cause
your requests to be serialized and might cause a bad performance. It might be
better to use something else then %mdat for storing application data.
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]