Re: [users@httpd] mod_perl issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Senthil Nathan" <rsennat@xxxxxxxxx>

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux