Hi,

Thanks to Embperl I almost done my web. But then I found serious abnormality on session handling (%udat) when used with HTTP redirection (ie. $req_rec->status(REDIRECT)). Sometimes %udat works OK, sometimes it still remains old data, especially after redirection is processed by another httpd. (race condition?)

I'm tired of Apache::Session::FIle. Besides I need to use %mdat as well. So as advised I turn to Apache::Session::DBI. But it is worse. The first access of %udat caused httpd to crash with panic message as follows:

[183] SES: Embperl Session Management enabled (1.xx)
panic restartop
panic: POPSTACK
Callback called exit.
Callback called exit.

What's wrong?

I'm using Embperl 1.2b9 and Apache::Session 1.02.

My httpd.conf looks like:

#...(my old setting)...
#PerlSetEnv  EMBPERL_SESSION_CLASSES "FileStore SysVSemaphoreLocker"
#PerlSetEnv  EMBPERL_SESSION_ARGS "Directory=/tmp"
#PerlModule  Apache::Session::File

#...new setting...it never works but panic...
PerlSetEnv  EMBPERL_SESSION_CLASSES "DBIStore SysVSemaphoreLocker"
PerlSetEnv  EMBPERL_SESSION_ARGS "DataSource=DBI:mysql:mydb UserName=panpipi Password=helpme"
PerlModule  Apache::Session::DBI (Apache::Session neither works)

#...this neither works. why?...
PerlSetEnv EMBPERL_COOKIE_DOMAIN ".myxxx.com"
PerlSetEnv EMBPERL_COOKIE_PATH "/"
PerlSetEnv EMBPERL_COOKIE_EXPIRES "+1Y"

What do I need to do with my database to work with Apache::Session? I mean what tables or database schema are necessary for this session handling to work?

PS. Besides, what's CVS version?

Huang-Ming

Gerald Richter ¼g¹D¡G

Hi,
>
>
> I think I found a bug in Embperl.pm about file upload. When I
> used HTML <input
> type=file name=...> tag to upload a file, Embperl crashed with
> error message
> like this: "Cannot modify read-only value ... in Embperl.pm line
> 774.", IF the
> uploaded filename starts with non-alpha character, eg. "1.gif" or
> "789.jpg". But
> it works ok if the filename looks like an variable identifier,
> eg. "abc.gif" or
> "xyz.jpg". So I guess Emperl.pm did not "expect" the filename to
> start with a
> digit, did it?
>

I have fixed this in the newest CVS Version, but I had to change the way
additional UploadInfos are accessed inside a Embperl in an incompatible way.
See the docs for more details.

Gerald

---------------------------------------------------------------
Gerald Richter      ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl

E-Mail:     [EMAIL PROTECTED]         Tel:        +49-6133/925151
WWW:        http://www.ecos.de      Fax:        +49-6133/925152
---------------------------------------------------------------

Reply via email to