1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Keep getting logged out

Discussion in 'Troubleshooting and Problems' started by Akela, Feb 14, 2013.

  1. Akela

    Akela Active Member

    Some of my users keep reporting getting logged out after as long as a couple of minutes or as short as one page load after login.
    I myself was able to replicate the issue on Opera and IE, but not on Firefox.
    The users experiencing the issue use IE and Firefox. Those on Chrome appear to be fine (or is this just a coincidence)?
    I use Cloudflare, but disabling it did not make a difference.

    Having set up phpinfo file, I can tell you that _SERVER["REMOTE_ADDR"] value consistently shows my IP.
    I have increased the logged in time to several hours (it used to be 60 minutes, so it shouldn't have caused a problem, anyway).
    I added
    $config['cache']['cacheSessions'] = true;
    to the library/config.php, but it did not make any difference.

    RewriteCond %{HTTP_HOST} !^datingfora\.com$ RewriteRule ^(.*)$ http://datingfora.com/$1 [R=301,L]
    to my .htaccess file did not help.

    Just in case, here is my entire .htaccess file:

    I just moved from phpBB, so I have no idea whether it is something with the server or my settings. I do not have any other XF sites running on the same server. I run MyISAM tables, because my server does not support InnoDB.

    What else can I try?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Akela likes this.
  3. Akela

    Akela Active Member

    Specific action? What I see on Opera is that clicking on a couple of pages logs me out. Some of my users are able to make a post or two before getting booted.

    I seem to have no issues on Firefox or on my iPad, but at least one other member has reported Firefox logging them out too.
  4. Akela

    Akela Active Member

    Can the fact that I have just transferred from another domain have anything to do with this? Inconsistent URLs and all?
  5. Akela

    Akela Active Member

    Disabling Full Friendly URLs fixed the issue with Opera for me. Let's see how it works for my users.

    But.. but.. I like the friendly URLs... :(
    petertdavis likes this.
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's possible if your users get caught during a change-over of your domain name.

    Just a guess... try uncommenting this line in your .htaccess file (and specify the name of your forum directory):

    	#RewriteBase /xenforo
  7. Akela

    Akela Active Member

    Thank you for still responding, Jake :)

    What do you mean by getting caught?

    It is already uncommented. I did that almost right after the installation...
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It their DNS changes over mid-session.
  9. Akela

    Akela Active Member

    So this error should go away eventually?

    I did not move hosting - just changed the software. Would their DNS be affected still?
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Only if you changed your DNS.

    It's a possibility that you inquired about. I don't consider it likely.

Share This Page