Users not staying logged in...

Jake Bunce

XenForo moderator
Staff member
I am guessing your users are clicking a link that uses a different subdomain (e.g. with or without "www"). This kind of inconsistency will cause login problems because the cookie goes out of scope. It is important that all links and bookmarks are consistent.

You can add a rewrite rule to your .htaccess file to enforce no www:

RewriteCond %{HTTP_HOST} !^yoursite\.com$
RewriteRule ^(.*)$$1 [R=301,L]