Welcome to the Monastery | |
PerlMonks |
Login routine fails intermittentlyby philosophia (Sexton) |
on Jan 22, 2008 at 16:31 UTC ( [id://663621]=perlquestion: print w/replies, xml ) | Need Help?? |
philosophia has asked for the wisdom of the Perl Monks concerning the following question:
This code from a login form seems to work only about 60 percent of the time. I am not sure if there is something about this code that is causing it to fail part of the time.
The code runs an ldap query, and if an entry exists, connects to a spam filtering appliance, creates a session id on the spam filtering appliance, then redirects to a web interface for the spam filtering appliance using the session id.
about 60 percent of the time the login form works, and the user is redirected properly. The other 40 percent of the time the login form throws an error at this point in the code
In order to debug why sometimes the login fails, I put
before the redirect happens. When the login in successful, there are values for $qtnhost and $mpusername. When the login fails, there are no values for $qtnhost and $mpusername, so that may be why login to the spam filtering appliance fails. I'm not sure why these values are missing some of the time, and I'm kind of stuck as to what I should do to debug this application further. I am deleting cookies and cache from my browser every time I test the form, btw. Any advice welcome.
Back to
Seekers of Perl Wisdom
|
|