You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Wayde Milas <wm...@rarcoa.com> on 2001/05/21 19:30:31 UTC
Fun with Sessions. Need some help.
Ok some info to start off with:
Apache Session 1.5.3
Embperl 1.3.1
I have my apache httpd.conf set up with:
<FilesMatch ".*\.epl$">
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</FilesMatch>
AddType text/html .epl
PerlSetEnv EMBPERL_DEBUG 2097152
PerlSetEnv EMBPERL_SESSION_CLASS "File Null"
PerlSetEnv SESSION_FILE_DIRECTORY "'Directory=/var/www/sessions'"
PerlModule HTML::Embperl
Embperl works fine. I can use DBD:DBI to shove stuff in a mysql database ect. The problem with with udat and mdat... they simply arent working. Obviously I have something set up wrong with sessions but I really have no clue what. Looking through the embperl logfile i see no mention of anything to do with sessions. I'm not getting a cookie when i shove stuff into udat.
What can I do to debug this? I'm not faliliar with Sessions at all and pretty much like the idea of using udat as a hash and letting it do its magic. :P
Ive tried configuring with:
PerlSetEnv EMBPERL_SESSION_CLASS "File"
and
PerlSetEnv EMBPERL_SESSION_CLASS "File Semaphore"
with no luck. I've also tried:
PerlSetEnv SESSION_FILE_DIRECTORY "Directory=/var/www/sessions"
and
PerlSetEnv SESSION_FILE_DIRECTORY "/var/www/sessions"
No luck.
The wierd thing is with all of teh above i dont get any errors. It jsut simply doesnt work.
Oh, also, /var/www/sessions is owned by the process apache is executing as, and is world readable/writeable (for testing purposes).
Help. :P
Thanks in advance.
--
Wayde Milas
wmilas@rarcoa.com
Work: (630) 654-2580
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Fun with Sessions. Need some help.
Posted by Gerald Richter <ri...@ecos.de>.
> Ok some info to start off with:
> Apache Session 1.5.3
> Embperl 1.3.1
>...
> PerlSetEnv EMBPERL_SESSION_CLASS "File Null"
> PerlSetEnv SESSION_FILE_DIRECTORY "'Directory=/var/www/sessions'"
These two configuartion directives are very old and worked once when Apache
0.17 was there, now use
PerlSetEnv EMBPERL_SESSION_CLASSES "File Null"
PerlSetEnv EMBPERL_SESSION_ARGS "'Directory=/var/www/sessions'"
Then you should see a message at server startup time about "Session
management enabled" and it should work
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org