XF 2.0 IE + Edge + Safari users get logged off for no reason?

CZ Eddie

Active member
Hi,

  1. Login
  2. Go to any forum
  3. Click on the "home" hyperlink
  4. Select forum
  5. Boom, you get logged off
Chrome works just fine on my PC & phone.
What kind of logs/etc. should I provide to receive help with this issue?

This is a new forum setup (migrated from vBulletin 4.x) and AFAIK, it's been like this since day one.
 
What is your site URL?

At a guess (though difficult to say without seeing the site) that your site home link may be using the www version of your URL and your forums are using the non-www version (or vice versa) and you don't have a redirect from one to the other (which you should). If this is the case, see point 19 of the FAQ.

 
Hi Martok,

The URL is https://labusas.org

Here's my .htaccess:

Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.labusas.org/$1 [R]

Per your suggestion, I've added the following lines above the xenforo rewrite rules.

Code:
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    RewriteCond %{HTTP_HOST} www.labusas.org$
    RewriteRule ^(.*)$ http://labusas.org$1 [R=301,L]

I just tested on my end and am no longer able to duplicate the log-out issue. :)
Will now send a message to my user who has the issue and ask them to confirm it's fixed.

Many thanks for pointing me in the right direction!!!!
 
Back
Top Bottom