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

XF 1.4 Log Out Not Working

Discussion in 'Troubleshooting and Problems' started by ViciousGnome, Feb 9, 2015.

  1. ViciousGnome

    ViciousGnome Active Member

    Hello, and thanks for trying to help me.

    I can not log out of my forums. I have tried on multiple browsers, and it won't work. I click on the log out and I am still logged in. Any ideas?
     
  2. Mike

    Mike XenForo Developer Staff Member

    Have you recently changed any cookie settings via config.php? Does this happen in an incognito window?
     
  3. ViciousGnome

    ViciousGnome Active Member

    No Mike, I haven't changed anything. I have not really tried to log out since I started the forums. I am not incognito. Can't log out in IE, FireFox, or Chrome.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Which URL are you using?
    I note your site is available from www and non-www (see the FAQ for how to force it to one or the other).

    Can you provide a test account so we can check?
    You can send the details via conversation.
     
  5. ViciousGnome

    ViciousGnome Active Member

    Done, thanks.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I just tested it with the details you provided and I was able to log in and out without a problem.

    It's possible you have a local browser issue so try force clearing your cache and cookies.
     
  7. ViciousGnome

    ViciousGnome Active Member

    I cleaned cache and cookies, and I was able to log out. Thank you Brogan. (y)
     
  8. Tracy Perry

    Tracy Perry Well-Known Member

    You still need to resolve the issue of being able to hit both the WWW and non-WWW sites that Brogan brought to your attention. It login/logout issues if you don't.
     
  9. ViciousGnome

    ViciousGnome Active Member

    I've tried all the codes in the FAQ, and none work. I'm at a loss for what to do at this point.

    I've added those codes to the .htaccess file (one at a time of course, and deleting each prior one after trying a new one), and I put them prior to all other coding as instructed. The .htaccess file was located in my forums directory. I didn't see one in the root directory of my site. Any suggestions?
     
  10. Tracy Perry

    Tracy Perry Well-Known Member

    Depends on what HTTP server you are using. If you are using NGINX then .htaccess will not work.
     
  11. ViciousGnome

    ViciousGnome Active Member

    I checked with my host, and I was told Apache web servers are used to handle the HTTP requests.

    Still have been unable to resolve this.
     
  12. Tracy Perry

    Tracy Perry Well-Known Member

    You are using.htaccess and not htaccess correct? It has to have the period before it.
     
  13. ViciousGnome

    ViciousGnome Active Member

    I have the period before it, yes.
     
  14. ViciousGnome

    ViciousGnome Active Member

    Also, where precisely should the .htaccess file be? In my root directory or in the forums directory?
     
  15. Tracy Perry

    Tracy Perry Well-Known Member

    The one for XenForo needs to be in the directory where XenForo is located (all the .php files).
    Are you running a CMS in the root directory?
     
  16. ViciousGnome

    ViciousGnome Active Member

    In my root directory I run wordpress.

    I used some of the code to force the removal of www, and it seems to be working now. When you use www it forces a redirect to the main site, which is a wordpress blog. Does anyone see something wrong still?
     
  17. Tracy Perry

    Tracy Perry Well-Known Member

    If you are using friendly URL's then you will need to put it in the forum directory (the example they give).
    Every directory can have it's own .htaccess in it to control access to it if running Apache.
     

Share This Page