1. 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...

Discussion in 'Troubleshooting and Problems' started by Greg Bartlett, Aug 16, 2011.

  1. Greg Bartlett

    Greg Bartlett Member


    See thread above, lots of people complaining about this. Most seem to be using IE, but not all. And it happens as frequently as every 30 seconds.

    Can't duplicate the problem myself.

    Searching on this topic doesn't reveal many other XF sites having this issue, so it could be a server setting, but not sure where to start with that.
  2. Jake Bunce

    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 ^(.*)$ http://yoursite.com$1 [R=301,L]
    Dean likes this.

Share This Page