I am trying to get my head around session handling. I have a small test document like this:

<html>
<head>Embperl session test</head>
<body>
[$ if $fdat{action} eq "submitted" $]
<p>You just submitted [+ $fdat{test} +]. Now setting a cookie with that
value.  Please <a href="test.html?action=continue">continue</a>.</p>
[- $udat{test} = $fdat{test} -]
[$ elsif $fdat{action} eq "continue" $]
<p>The value you input on the previous page is [+ $udat{test} +].</p>
[$ else $]
<p>Enter anything here.</p>
<form>
<input type="text" name="test" />
<input type="hidden" name="action" value="submitted" />
<input type="submit">
</form>
[$ endif $]
</body>
</html>

My Apache 2 configuration looks something like this:

<VirtualHost press.terminus.net.au:80>
      ServerName press.terminus.net.au
      DocumentRoot /var/www/press
      <Directory /var/www/press>
        <FilesMatch ".*\.htm.?$">
          SetHandler perl-script
          PerlHandler Embperl::Object
          Options ExecCGI
        </FilesMatch>
        <FilesMatch ".*\.epl$">
          Order allow,deny
          Deny From all
        </FilesMatch>
        EMBPERL_APPNAME terminuspress
        EMBPERL_OBJECT_BASE base.epl
        EMBPERL_URIMATCH "\.htm.?|\.epl$"
        EMBPERL_SESSION_CLASSES "File Semaphore"
        EMBPERL_SESSION_ARGS "Directory=/var/www/press/orders"
      </Directory>
</VirtualHost>

Nothing ever gets written to /var/www/press/orders. I read in the Embperl::Config man page that if I put EMBPERL_DEBUG 209715 in my environment then I will get debugging of session transactions, but I don't get anything that I recognise as helpful written to that log.

Am I doing something wrong?

TIA

--
Jeremy Malcolm LLB (Hons) B Com
Internet and Open Source lawyer, IT consultant, actor
host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org|awk -F! '{print $3}'


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to