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

XF 1.5 Sudden Logouts

Discussion in 'XenForo Questions and Support' started by vFranky, Jan 11, 2016.

  1. vFranky

    vFranky Active Member


    some of our users are being logged off from XenForo sometimes when they browse our forum, although the repeatedly clicked "stay logged in". For example when they open a new window with a right click.

    Any ideas? Thank you in advance!

    Kind regards,
  2. wang

    wang Well-Known Member

    Hello Frank,

    What browser are those users using?
    vFranky likes this.
  3. Steve F

    Steve F Well-Known Member

    Are you able to access your site with www.yoursite.com and yoursite.com (without www)?

    That is what I would check first.
    vFranky and wang like this.
  4. vFranky

    vFranky Active Member

    They use Firefox. One user states it might be a problem with HTML5 canvas image data for identification.

    Yes, no problem.
  5. Martok

    Martok Well-Known Member

    What Steve F means do www.yoursite.com and yoursite.com separately exist, or does one redirect to the other (e.g. www.yoursite.com redirects to yoursite.com or vice versa)?

    If they separately exist (and I suspect this is the case) then you need to decide which one you want to use (either the www or non-www one) and set it so that the one you don't use redirects to the other one. See point 19 of the FAQ on how to do this.

    vFranky likes this.
  6. vFranky

    vFranky Active Member

    Thank you very much.

    I am using the www.yoursite.com, which is configured in XenForo. There is also a webserver configuration for yoursite.com which leads to the following htacces file =>

    RewriteEngine On
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
    RewriteRule .+ http://www.yoursite.com/ [R=301,L]
  7. Martok

    Martok Well-Known Member

    As it says in point 19 of the FAQ that I linked to:

    You'll therefore need to try the how to force www examples in that FAQ point until you find one that works for you.
    vFranky likes this.
  8. AndyB

    AndyB Well-Known Member

    Try this:

    RewriteCond %{HTTP_HOST} ^example.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    add this code here:


    After you make the change, clear your cache in your browser and exit the browser. Start browser and see if www is always forced.
    maszd and vFranky like this.

Share This Page