perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Some wierd problem with mod_perl and Apache
Date Sat, 03 Aug 2002 17:24:47 GMT
Yes, I have been looking at this site and doing my own debugging via prints
I haven;t seen any problem with uptil now with my code and have spent hours
this. Would like to know if someone can see any obvious problems here:

package Apache::ChangePassword;

use strict;
use Apache::Constants qw(:common);
use CGI '-autoload';

sub handler {
      my $r = shift;
      my($oldpass, $newpass1, $confirmpass) = map { param($_) } qw(password
newpassword1 confirmpassword);
       my $user = $r->connection->user;

  if($user && $pass && $newpass1 && $newpass2)

	  I authenticate...

The problem is sometimes....even though I enter all the values of the
password on the form
and press the change passwd button, when I am printin the values of
they are all 0. Other times...this works just fine...and I see the printed
Am I messing with my global variables here ? I don;t seem to think

Any help is highly appreciated.



-----Original Message-----
From: Stas Bekman []
Sent: Saturday, August 03, 2002 12:47 PM
To: Ged Haywood
Cc: modperl
Subject: Re: Some wierd problem with mod_perl and Apache

Ged Haywood wrote:
> Hi there,
> On Fri, 2 Aug 2002 wrote:
>>sometimes.....when I enter the values in the form and click on the
>>"change password" button, the same screen comes back to me without
>>the change actually happening. After doing this couple of times, I
>>would actually succeed.
> Have you checked out the Guide?

BTW, while /guide is still working, the real url is now 
/docs/1.0/guide/, so I'd rather see people use that, because you should 
remember that we enter the era of co-existence of mod_perl 1.0 and 2.0, 
so /guide is not the *only* guide anymore. Moreover parts of the /guide 
that aren't specific to 1.0 have moved into /docs/general/.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message