ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Users with Dynamic IPs cannot log in after ExpressionEngine upgrade

March 03, 2012 1:51pm

Subscribe [4]
  • #1 / Mar 03, 2012 1:51pm

    fostermade

    97 posts

    Hello,

    We recently upgraded http://www.bionicturtle.com from EE 2.2.2 to EE 2.4

    Since the upgrade we’ve noticed a pattern that users logging in from dynamic IPs can no longer log in.

    All of the site settings are consistent with the pre-upgrade version.

    Any ideas?

    Thanks!
    -Shawn

  • #2 / Mar 05, 2012 1:54pm

    Dan Decker

    7338 posts

    Hi visualchefs,

    I’m sorry this has crept up on you. There is a addition you can make to config.php that will keep this from happening.

    If you edit /system/expressionengine/config/config.php and add:

    $config['require_ip_for_login'] = 'n';
    $config['require_ip_for_posting'] = 'n';

    Before:

    // END EE config items

    That should allow your users with Dynamic IPs to login and post without any issues.

    Let me know if that doesn’t work!

    Cheers,

     

  • #3 / Mar 05, 2012 2:07pm

    fostermade

    97 posts

    Thanks, Dan.  I thought I had those set but… I did not.  I will confirm with the users.

    Thanks again!
    -Shawn

  • #4 / Mar 07, 2012 4:28pm

    Shane Eckert

    7174 posts

    Hello visualchefs,

    Thanks for letting us know. Please keep in touch and let us know how that goes.

    Cheers,

  • #5 / Mar 09, 2012 11:54am

    fostermade

    97 posts

    Hi Shane,

    I can confirm that the issue is still happening for a certain group of users with Dynamic IPs.  I copied a portion of the log file just so you can see that the IP address literally changes on every single request.  Any other thoughts?

    Thanks!
    -Shawn

    bionicturtle.com:220.255.2.92 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/styles/home.css?v=5 HTTP/1.1" 200 4836 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.43 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/styles/skins/bt/slidedeck.skin.css HTTP/1.1" 200 9162 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.94 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/styles/print.css HTTP/1.1" 200 657 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.84 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/scripts/jquery.MetaData.min.js HTTP/1.1" 200 1235 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.21 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/scripts/jquery.rating.pack.js HTTP/1.1" 200 4162 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.63 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/scripts/silverlight.min.js HTTP/1.1" 200 8515 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
    bionicturtle.com:220.255.2.41 - - [09/Mar/2012:11:35:43 -0500] "GET /assets/styles/styles.css?v=10 HTTP/1.1" 200 125792 "http://www.bionicturtle.com/how-to/spreadsheet/3.b.5-irate-futures-chap-6/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
  • #6 / Mar 09, 2012 7:40pm

    Sean C. Smith

    3818 posts

    Hi Shawn,

    I’ve seen this before in this post

    We had the same issue and in our case it was a matter of dynamic ip addresses in the clients network.  Every 10 minutes they switched.
    After some digging around we ended up in the function fetch_session_data.  Regardless of your settings to require an ip address or not, it will try to match it with the one stored in the database.  Of course, when the ip switches, you get thrown out of the CP.

    On line 700 of system/expressionengine/libraries/Session.php you will find the check for ip in the fetch session data function.  In the end we ended up commenting that one and that solved our issue.  It’s probably an edge case, but it’s worth a try.

    public function fetch_session_data()
        {
            // Look for session.  Match the user's IP address and browser for added security.
            $this->EE->db->select('member_id, admin_sess, last_activity')
                         ->where('session_id', (string) $this->sdata['session_id'])
                         ->where('ip_address', $this->sdata['ip_address'])
                         ->where('user_agent', $this->sdata['user_agent']);

    If you try this fix, does that work for you? Since this is for an older version of EE be sure to make a backup copy of that file before making any changes.

    Keep me posted on how this works for you.

    Sean

  • #7 / Mar 12, 2012 3:15pm

    fostermade

    97 posts

    Hi Sean,

    I commented out the ip_address check and our members with dynamic IPs are still having issues.

    It seems that other reports related to dynamic IPs are appearing in this bug tracker post.
    https://support.ellislab.com/bugs/detail/17423

    Two users noted that their ISP is in Singapore which is the case for many of the users on the bionic turtle site.

    Any other ideas?  Any movement on the bug report?

    Thanks,
    Shawn

  • #8 / Mar 13, 2012 2:11pm

    fostermade

    97 posts

    Sean,

    You can close this thread.  David started a new thread for the same issue here: http://ellislab.com/forums/viewthread/213023/

    I don’t think we need two threads open for this.

    Thanks!
    -Shawn

  • #9 / Mar 13, 2012 3:10pm

    Shane Eckert

    7174 posts

    Hello visualchefs,

    Thanks for letting us know. It’s nice to keep stuff in one thread for all the tech involved. I appreciate that.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases