problem with Embperl and Apache::Session::File

1999-10-10 Thread David R. Saunders

Folks,
  I'm running:

Solaris 2.6
Perl 5.005_03
Apache-Session-1.04
HTML_Embperl-1.2b10

and I'm trying to use Apache::Session::File ... I have this test program:

#!/usr/local/perl5.005_03/perl
use Apache;
use Apache::Session::File;
my $id = 1;
my $opts = { Directory =gt; '/tmp' };
my %session;
tie %session,'Apache::Session::File', $id, $opts;
print Content-type: text/plain\n\n;
if ($session{data} eq '') {
print "first time";
} else {
print "not first time";
}
$session{data} = 'x';
untie(%session);
exit;


and am getting this error message:


Invalid argument at 
/usr/local/perl5.005_03/lib/site_perl/5.005/Apache/Session/SysVSemaphoreLocker.pm line 
46.


Anyone know why this is happening?  Thanks for your help,
Dave Saunders
[EMAIL PROTECTED]



Re: problem with Embperl and Apache::Session::File

1999-10-10 Thread Jeffrey W. Baker

"David R. Saunders" wrote:
 
 Folks,
   I'm running:
 
 Solaris 2.6
 Perl 5.005_03
 Apache-Session-1.04
 HTML_Embperl-1.2b10
 
 and I'm trying to use Apache::Session::File ... I have this test program:
 
 #!/usr/local/perl5.005_03/perl
 use Apache;
 use Apache::Session::File;
 my $id = 1;
 my $opts = { Directory =gt; '/tmp' };

my $opts = { Directory = '/tmp', NSems = 16 };


-jwb