httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <orasn...@fcc.ro>
Subject Re: [users@httpd] mod_perl issues
Date Tue, 06 Dec 2005 14:55:49 GMT
From: "Senthil Nathan" <rsennat@gmail.com>

Hi all,

these problems are related to Apache 2 and mod_perl 2

problem 1:
Im using mod_perl 2 on Apache 2. I am using HTML::Template to display the
data from the perl/cgi script.

For the first time loading the data is displayed properly. then for every
reload the data displayed on the template gets repeatedly displayed. ( i.e,
it gets accumulated. for 5 times reload 5 sets of data is displayed in the
template).

Actually this problem is not seen on cgi/perl environment. Only with
mod_perl this problem occurs.
---

The program is not correctly written for working with mod_perl.
Perhaps it uses global variables and they are not re-initialized at program
startup.

ModPerl compiles the program only once.

Read on perl.apache.org.

problem 2:
in multiuser login, when an user logins to the application, only his dats
should be visible to him.
but in mod_perl other user's data is also seen ob every reload.

this problem also occurs only with mod_perl. not in cgi/perl env.

This is the same issue. The program is compiled only once and it keeps the
data in the memory. The next time it is ran, the next visitor will see the
data.

I think this program uses ModPerl::Registry, right?

Try using ModPerl::PerlRun instead.


See:
http://perl.apache.org/docs/2.0/api/ModPerl/PerlRun.html

Teddy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message