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

XF 1.5 User(s) keep getting logged out


Active member
Hello fellow xenforo users / supporters,

I have recently been setting up my site and linked it to a few friends of mine today, https://gurubashisurf.club/, what happends is he logs in and if he reloads the page he is logged out, if he presses any of the menus he is logged out again, so it like, logs him in and then out :S

Hopefulyl someone has an answer? I cant tell if this happends for multiple users or just him as I only have 2-3 users at. He has tried both Firefox and Google chrome, happends both places, hope you have some suggestions.

Best regards Shamatix

Tracy Perry

Well-known member
Prime issue will be you are serving both WWW and non-WWW on your site (available via either one). You need to decide on one or the other and then do a forced rewrite for all inbound on the one you don't want to go to the one you do.

Tracy Perry

Well-known member
are you using Apache or nginx for your HTTP server?
If using apache, then in the top of your .htaccess (below the rewrite base) you need to use
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
to strip the WWW to the non-www domain or
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
to redirect non-www to www.
Nginx will be different.


XenForo developer
Staff member
It'd be important to note whether this is happening to you/multiple users or just him. If it's just him, that would imply something on his end.