im using globals with the keyword "use".
also it worked fine without mod_perl.

thats what worries now...
i tried ModPerl:;PerlRun in the httpd.conf and see no change in the global data being used by others.

so how can i do away with that problem???

thanks
senthil

On 12/2/05, Malcolm J Harwood < [EMAIL PROTECTED]> wrote:
On Thursday 01 December 2005 04:15 pm, Senthil Nathan wrote:

> im facing a problem with mod_perl2 on apache 2 as,
>
> in the multiuser environment, everyone login to the page and their
> respective profile gets displayed. after every click, other user's data
> also gets aappended to this current view for the user, which is not the
> expected one in mod_perl.
>
> the same piece of code cgi/perl works very well on apache 2.(without
> mod_perl). only the respective user's profile can be viewed.
>
> so the problem arises only with mod_perl for sure.
>
> how can this be resolved???

Don't use globals, they persist between requests.

If you use ModPerl::PerlRun as opposed to ModPerl::Registry as your content
handler, you'll get less of the speed up, but it'll throw away all your
global data between requests. That should solve your immediate problem.
(cf. http://perl.apache.org/docs/2.0/api/index.html )

If that works, then go through your code and remove the use of global
variables (which are generally bad design anyway). Then it should run under
ModPerl::Registry.



--
"If you're never scared, you're not trying."
- Llewellyn (www.ozyandmillie.org/2003/om20030124.html)

Reply via email to