Welcome to Centmin Mod Community
Register Now

Xenforo Admincp logs out users every 2 min; caching issue?

Discussion in 'Forum software usage' started by poly1, Jan 15, 2015.

  1. poly1

    poly1 New Member

    5
    1
    3
    Nov 20, 2014
    Ratings:
    +1
    Local Time:
    7:21 PM
    1.7.7
    5.5.41
    Hello,
    I am running a Xenforo 1.4.3-based forum, using Centmin .07, with the following setup:
    • Xen-based dedicated VPS, CentOS 6.6
    • php 5.6.4
    • nginx 1.7.7
    • memcached w/Zend opcache
    • MariaDB
    Everything works great, especially the caching (stats pages confirm this). However, since enabling memcached and/or Zend, I've been noticing that site staff, myself included, are being logged out of the Admin control panel after approx. 2 minutes, regardless of whether or not they are inactive. This issue only happens in the Admin panel, not the rest of the forum. I've Googled the issue, without a satisfactory answer, however some of the discussions I found seem to point toward the culprit being a caching issue.

    My question is, is there a way to fix the caching issues so that users no longer get automatically logged out of the admin panel every 2 minutes? Alternatively, is there a way to disable caching for the admin panel only? Any help would be greatly appreciated. Thanks :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    7:21 PM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod out of box and defaults do not do any php related caching beyond static file caching. So it shouldn't be related. Have you checked if it's related to any Xenforo addons ?

    When did this logging out start happening ? since day 1 with Centmin Mod and/or particular Xenforo version ? or since particular Centmin Mod software updates ?

    It's my first time hearing of such issues as it isn't common for me or folks I know using Xenforo + Centmin Mod
     
  3. poly1

    poly1 New Member

    5
    1
    3
    Nov 20, 2014
    Ratings:
    +1
    Local Time:
    7:21 PM
    1.7.7
    5.5.41
    I guess I should rephrase my original post: I'm not 100% certain when exactly the logout problem with the admin panel started. I handle mostly backend affairs for my site, so I don't spend much time logged in. A few of the other staff reported the problem to me, and they seem convinced that caching is to blame. Aside from verifying that the automatic logout is a real thing, I haven't been able to pinpoint a cause. I guess I should be looking at Firebug/Google Developer Tools, and posting this query to the Xenforo site. Thanks anyways for your quick response :)
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    Maybe their IP is not static and changing every few minutes.
     
  5. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    I was having an issue of where my XenForo installation absolutely refused to allow me to log in to my admin CP at times, and when I did manage to sign in, it would sign me back out a couple of minutes later.

    I found the issue to be Cloudflare. Not sure if you're using this service, but if anyone else is using them and having issues, I figured I'd share. It was odd because it was still screwy even after adding a page rule exemption to the admin.php

    :)
     
    • Informative Informative x 1
  6. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    How did you manage to fix it?
    I'm using Cloudflare too.
     
  7. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    I didn't exactly "fix it" to say the least. I simply put the Cloudflare on pause.
     
  8. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    I'm using cloudflare and I don't have this kind of problem though :).
     
  9. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    Would you mind sharing your cloudflare settings and any page rule exemptions you may have with the settings within possible exemptions?
     
  10. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    I added admin.php on page rules and turn off almost everything.
     
  11. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    What do you leave on?
     
  12. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    SS
    upload_2015-4-26_11-29-30.png
     
  13. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    Your domain, do you have it written out as "http:// domain . com/admin.php" or "domain.com/admin.php"?

    Can I also get a SS of your cloudflare settings? I know it's a pain, but I'd be grateful :)
     
  14. RoldanLT

    RoldanLT Well-Known Member

    3,900
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    5:21 PM
    1.11
    10.2
    Page rule pattern: *domain.com/admin.php*
    Security settings:
    upload_2015-4-26_11-36-35.png

    I only intended to use their CDN.
     
    • Friendly Friendly x 1
  15. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    I'll give your settings a go and see how it works out for me. THANKS A BUNCH!
     
  16. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    4:21 AM
    1.11.x
    10.1.18
    @RoldanLT, your Cloudflare settings appear to have worked for my centmin/xenforo combo. I'm not experiencing any trouble logging into my admin CP now.

    :)
     
    • Like Like x 1