perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MaurĂ­cio Amorim " <masil...@terra.com.br>
Subject Problems with %udat
Date Fri, 20 Dec 2002 20:44:14 GMT
Hi mailing list,

I install apache with embperl with the following configuration:

Platform: SunOS 5.6

Apache 1.3.26
mod_perl-1.27
HTML-Embperl-1.3.4
Apache-Session-1.54
Apache-SessionX-2.00b3

I did a module called mypackage.pm and i declare a function that set %udat

in .epl file a did:

[- use pct::mypackage; -]
[- pct::mypackage::createsession("user", "xxxxxx"); -]
[# $udat{user} = "xxxxxx; #]
[+ $udat{_session_id} +]

in mypackage.pm:

#! /usr/bin/perl
package pct::mypackage;
sub createsession {
    my ($k) = shift;
    my ($v) = shift;
    $udat{$k} = $v;
}
1;

When i run the .epl file in browser, this create an session for each submission.

When i use %udat directly ($udat{user} = "xxxxxx;) the session work.

Anybody can help me.

Thank you, Mauricio.
Mime
View raw message