Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: "MojoX::Session" suddenly quit working?!

by snoopy (Deacon)
on Apr 03, 2009 at 03:04 UTC ( #755170=note: print w/ replies, xml ) Need Help??


in reply to "MojoX::Session" suddenly quit working?!

The test routines know that we have to set a phony IP-address, as Apache would do, which they do like this: $ENV{'REMOTE_ADDR'} = '1.2.3.4'; (Remember, this code worked.)

Note the last change log entry for MojoX::Session:

0.08 2009-01-25 00:00:00 - tx is passed to session now - correct ip_match behavior

This is either suspicious or just a coincidence.

You might want to check that you haven't just upgraded to 0.08 and got a "working" ip_match, which has started turfing your dummy test IP addresses.


Comment on Re: "MojoX::Session" suddenly quit working?!
Download Code
Re^2: "MojoX::Session" suddenly quit working?!
by sundialsvc4 (Abbot) on Apr 03, 2009 at 03:26 UTC

    Ahhh... hmmmmm.... “By Jove, I think you‘ve got it ... ” Certainly the best-guess as to a culprit.

    What puzzles me is... I just refreshed everything, and it still fails both in test and in Apache. Which, as far as I know, it did not do before. (As in, earlier this week.)

      Maybe look for any calls of the form: MojoX::Session->new(..., ip_match => 1);.

      MojoX::Session may have suddenly started honoring the cross check on these dummy IP's (and failing) where it wasn't before.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://755170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-28 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls