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

Users not staying logged in...

Jake Bunce

XenForo moderator
Staff member
#2
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:

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