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.

Login Persistence Problem

September 06, 2011 4:20pm

Subscribe [4]
  • #1 / Sep 06, 2011 4:20pm

    Jed from B&S

    14 posts

    I just upgraded to 2.2.2, and now I’m having a problem with login persistence. 

    I access my site from multiple IP addresses throughout the day.  With 1.7, I was able to hit the site constantly, and I could go months without having to login after the initial login on each computer.

    With 2.2.2, I’m having to login 3-4 times a day.  I’m not sure if it’s random, or because of the hits from multiple IPs.

    Relevant security and session settings are as follow:

    Control Panel Session Type—Cookies only
    User Session Type—Cookies only
    Allow multiple log-ins from a single account?—Yes
    Require IP Address and User Agent for Login?—No

  • #2 / Sep 07, 2011 1:24am

    Dan Decker

    7338 posts

    Jed,

    What do you have set for your Cookie Domain? Admin-> Security and Privacy-> Cookie Settings

    Cheers,

  • #3 / Sep 07, 2011 9:12am

    Jed from B&S

    14 posts

    .bootsandsabers.com

    The blog is at http://www.bootsandsabers.com.

  • #4 / Sep 08, 2011 4:30pm

    Kevin Smith

    4784 posts

    Hi Jed,

    Did you just upgrade to 2.2.2 directly from 1.7? Or was there a time in between where you were running a different version of EE? Just trying to nail down the latest version where session persistence wasn’t a problem for you.

    Is the system forcing you to log back in when you click a particular link within the CP, or do you have to login immediately upon returning to use the CP after a few hours or after using another computer?

    Session issues are some of the hardest to nail down, so please bear with us as we help. As much detail as possible about your system and server environment will help immensely!

  • #5 / Sep 08, 2011 6:14pm

    Jed from B&S

    14 posts

    Kevin,

    I upgraded from 1.7.1. directly to 2.2.2.

    If I login on my desktop, I can browse all day without having to re-login.  If I then login on my iPad, I can do the same on the iPad.  But if I then go back to the desktop, I’m logged out on the desktop and have to re-login.  And then if I go back to the iPad, I again have to re-login on it.  Basically, anytime I switch IP addresses, I immediately have to re-login.

    What are you looking for on the server info?  I’m not really familiar, but I can track down whatever info you need from my hosting provider.

    Apache - 2.0.63
    PHP - 5.2.17
    mySQL - 5.1.56
    OS - linux

  • #6 / Sep 09, 2011 5:24pm

    Kevin Smith

    4784 posts

    Oh, I see what the problem is. If you look at the note with the multiple logins setting, you’ll see it says this:

    Allow multiple log-ins from a single account?
    Determines whether more than one person can simultaneously access the system using the same user account. Note: If your Session Type above is set to “Cookies Only” this feature will not work.

    So just change your Admin session type (or User session type, if that’s the one you’re referring to) to Cookies and session ID, and everything should work. Let me know how that works for you!

  • #7 / Sep 11, 2011 10:11pm

    Jed from B&S

    14 posts

    Didn’t work.  Any other ideas?

  • #8 / Sep 12, 2011 5:09pm

    Kevin Smith

    4784 posts

    Be on the lookout for an email from me, Jed. I’d like to tinker with this first-hand to see if I can figure it out.

  • #9 / Sep 13, 2011 11:29am

    Kevin Smith

    4784 posts

    Hey Jed,

    I logged into the CP on my end and had one of the other Customer Advocates log in from his computer so that we’d have two logins from different IPs. We were both able stay logged into the CP successfully. Are you still experiencing issues if you start two CP sessions from different IP addresses? If so, does the CP log you out only if you’re using a computer and an iPad at the same time or does it also happen when you use two computers with different IP addresses? Is you iPad connecting via 3G or over the same wireless connection your computer is using?

  • #10 / Sep 13, 2011 1:17pm

    Jed from B&S

    14 posts

    I’m still having the problem, but I’m unable to fully troubleshoot it because I’m on the road for work and don’t have access to my desktop at the moment.

    Originally I was having the problem while logging in on the desktop and iPad, with the desktop hardlined to the router and the iPad on the same router via WiFi.  I also had the problem with the iPad connected through 3G.  I haven’t been able to test again with the desktop since changing the cookie setting.

    I’m still having the problem if I switch from iPhone to iPad and back, both through WiFi and 3G with both devices.

    I haven’t tried connecting through two computers at one time.  I can give that a try this weekend when I get back to my desktop.

  • #11 / Sep 14, 2011 7:19pm

    Kevin Smith

    4784 posts

    Thanks for the update. No rush while you’re on the road! Let us know what you discover after you try it with two separate computers and we’ll go from there.

  • #12 / Sep 20, 2011 2:27pm

    Jed from B&S

    14 posts

    I’ve done some more testing, and there doesn’t appear to be any rhyme or reason to it.

    I can hit the website from desktop, laptop, and iPad all at once, and be logged in on all 3.  But if I keep hitting the site from all three, within minutes I’ll have to either re-login to the site, or re-login to just the CP, but not with any predictability.  It seems to be very random as to when and how it’s logging me out.

  • #13 / Sep 21, 2011 5:49pm

    Kevin Smith

    4784 posts

    Well… I’m not sure what to do about this then, to be honest with you. If we can’t reproduce it with any kind of regularity, fixing it is going to be like nailing jello to a wall.

    Keep all devices on the same connection, WiFi if you can, and monitor the IP address of that connection with something like http://whatismyipaddress.com/. The next time you get booted, see if it happens to all your devices or just some of them. Also check to see if your IP address changed.

    Let us know what you find out. Hopefully we’ll be able to figure out the rhyme and reason of these dropped sessions!

  • #14 / Sep 21, 2011 7:00pm

    Jed from B&S

    14 posts

    Here’s today’s testing results.  All hardline and WiFi were from the same IP address.  3G was not.

    0946—desktop (hardline to router)—logged into site and CP
    1614—iPad (WiFi)—logged into site and CP
    1620—desktop—still logged into both site and CP
    1627—laptop (WiFi)—logged into site and CP
    1635—desktop—still logged into both site and CP
    1641—iPad (WiFi)—still logged into both site and CP
    1642—iPad (3G)—had to re-login x2 immediately upon switching to 3G
    1645—desktop—still logged into both site and CP
    1645—laptop (WiFi)—still logged into both site and CP
    1646—iPad (WiFi)—had to re-login x2 immediately upon switching back to WiFi
    1647—desktop—still logged into both site and CP
    1648—laptop—still logged into both site and CP

    It appears that switching IP addresses on the iPad may be causing me to have to re-login on that device.  I haven’t been able to duplicate the problem with having to re-login on the desktop/laptop.  It happens much less frequently, though I don’t think it’s IP-related as my home IP has been static for months.

  • #15 / Sep 22, 2011 1:43pm

    Mark Bowen

    12637 posts

    Hi Jed,

    Sounds to me like something weird with the iPad. Might be an idea to post on the Apple Forums to see if anyone has any ideas there?

    As it appears to be working for you now though I’m going to close out this thread.

    If it does happen again for you though then please don’t hesitate to click on the button at the bottom of this thread to create a new related thread and we’ll work with you again on it there.

    Thanks,

    Mark

    Mod Edit: This thread is continued here.

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

ExpressionEngine News!

#eecms, #events, #releases